nodedb-cluster 0.0.4

Distributed coordination layer for NodeDB — vShards, QUIC transport, and replication
Documentation
//! Replicated metadata Raft group (group 0).
//!
//! All cluster-wide state — DDL (via opaque host payload), topology,
//! routing, descriptor leases, cluster version — is proposed as a
//! [`MetadataEntry`] against this group and applied on every node via
//! a [`MetadataApplier`].

pub mod applier;
pub mod cache;
pub mod codec;
pub mod descriptors;
pub mod entry;
pub mod state;

pub use applier::{CacheApplier, MetadataApplier, NoopMetadataApplier};
pub use cache::MetadataCache;
pub use codec::{decode_entry, encode_entry};
pub use descriptors::{DescriptorHeader, DescriptorId, DescriptorKind, DescriptorLease};
pub use entry::{MetadataEntry, RoutingChange, TopologyChange};
pub use state::DescriptorState;

/// Well-known Raft group ID for the metadata group.
/// Distinct from data vShard groups (which start at group 1).
pub const METADATA_GROUP_ID: u64 = 0;