pub struct RoundRobin { /* private fields */ }Expand description
Each in turn.
Predictable, which is worth more here than clever: with least-connections a slow instance quietly attracts less traffic and nobody notices it is slow, and with random the distribution is only even in the long run. Round-robin is wrong in exactly one way — it sends the same share to an instance that cannot cope — and the circuit breaker is what answers that.
Implementations§
Source§impl RoundRobin
impl RoundRobin
pub fn new() -> RoundRobin
Trait Implementations§
Source§impl Balance for RoundRobin
impl Balance for RoundRobin
Auto Trait Implementations§
impl !Freeze for RoundRobin
impl RefUnwindSafe for RoundRobin
impl Send for RoundRobin
impl Sync for RoundRobin
impl Unpin for RoundRobin
impl UnsafeUnpin for RoundRobin
impl UnwindSafe for RoundRobin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more