[−][src]Enum eventstore::types::SystemConsumerStrategy
System supported consumer strategies for use with persistent subscriptions.
Variants
Distributes events to a single client until the bufferSize is reached. After which the next client is selected in a round robin style, and the process is repeated.
Distributes events to all clients evenly. If the client buffer-size is reached the client is ignored until events are acknowledged/not acknowledged.
For use with an indexing projection such as the system $by_category projection. Event Store inspects event for its source stream id, hashing the id to one of 1024 buckets assigned to individual clients. When a client disconnects it's buckets are assigned to other clients. When a client connects, it is assigned some of the existing buckets. This naively attempts to maintain a balanced workload. The main aim of this strategy is to decrease the likelihood of concurrency and ordering issues while maintaining load balancing. This is not a guarantee, and you should handle the usual ordering and concurrency issues.
Trait Implementations
impl Clone for SystemConsumerStrategy
[src]
fn clone(&self) -> SystemConsumerStrategy
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SystemConsumerStrategy
[src]
impl Debug for SystemConsumerStrategy
[src]
impl Eq for SystemConsumerStrategy
[src]
impl PartialEq<SystemConsumerStrategy> for SystemConsumerStrategy
[src]
fn eq(&self, other: &SystemConsumerStrategy) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for SystemConsumerStrategy
[src]
impl StructuralPartialEq for SystemConsumerStrategy
[src]
Auto Trait Implementations
impl RefUnwindSafe for SystemConsumerStrategy
impl Send for SystemConsumerStrategy
impl Sync for SystemConsumerStrategy
impl Unpin for SystemConsumerStrategy
impl UnwindSafe for SystemConsumerStrategy
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,