Skip to main content

Module selection

Module selection 

Source
Expand description

Provider selection strategies for the pool.

Strategies:

  • RoundRobin — distribute evenly across healthy providers
  • Priority — try in priority order (lowest number = highest priority)
  • WeightedRoundRobin — distribute proportionally by weight
  • LatencyBased — route to the fastest responding provider
  • Sticky — same provider for same key (e.g. address for nonce management)

Structs§

SelectionState
State for stateful selection strategies.

Enums§

SelectionStrategy
A selection strategy decides which provider index to use next.