Module rpc_selector

Source
Expand description

§RPC Provider Selector

This module provides functionality for dynamically selecting RPC endpoints based on configured priorities, health status, and selection strategies.

§Features

  • Weighted selection: Providers can be assigned different weights to control selection probability
  • Round-robin fallback: If weighted selection fails or weights are equal, round-robin is used
  • Health tracking: Failed providers are temporarily excluded from selection
  • Automatic recovery: Failed providers are automatically recovered after a configurable period

Structs§

RpcSelector
Manages selection of RPC endpoints based on configuration.

Enums§

RpcSelectorError