pub enum EnvelopeSpoolPartitioning {
ProjectKeyPair,
RoundRobin,
}Expand description
Strategy used to assign envelopes to buffer partitions.
Variants§
ProjectKeyPair
Envelopes with the same project key pair land on the same partition (default).
Keeps per-project state, disk files, and event ordering co-located on one partition.
RoundRobin
Envelopes are distributed across partitions in a round-robin fashion.
This prevents “hot” partitions when a single project pair dominates traffic, but has trade-offs:
- Per-project LIFO ordering is no longer preserved across partitions.
- Per-partition memory footprint grows since every partition sees every project.
Trait Implementations§
Source§impl Clone for EnvelopeSpoolPartitioning
impl Clone for EnvelopeSpoolPartitioning
Source§fn clone(&self) -> EnvelopeSpoolPartitioning
fn clone(&self) -> EnvelopeSpoolPartitioning
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnvelopeSpoolPartitioning
impl Debug for EnvelopeSpoolPartitioning
Source§impl Default for EnvelopeSpoolPartitioning
impl Default for EnvelopeSpoolPartitioning
Source§fn default() -> EnvelopeSpoolPartitioning
fn default() -> EnvelopeSpoolPartitioning
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EnvelopeSpoolPartitioning
impl<'de> Deserialize<'de> for EnvelopeSpoolPartitioning
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for EnvelopeSpoolPartitioning
impl Eq for EnvelopeSpoolPartitioning
impl StructuralPartialEq for EnvelopeSpoolPartitioning
Auto Trait Implementations§
impl Freeze for EnvelopeSpoolPartitioning
impl RefUnwindSafe for EnvelopeSpoolPartitioning
impl Send for EnvelopeSpoolPartitioning
impl Sync for EnvelopeSpoolPartitioning
impl Unpin for EnvelopeSpoolPartitioning
impl UnsafeUnpin for EnvelopeSpoolPartitioning
impl UnwindSafe for EnvelopeSpoolPartitioning
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.