Skip to main content

Crate sharedstate

Crate sharedstate 

Source
Expand description

Synchronize deterministic state machines across a cluster.

The crate is organized into focused layers: state management, protocol framing, transport adapters, and cluster coordination.

Re-exports§

pub use cluster::node_state::DebugInfo;
pub use cluster::node_state::FollowerStatus;
pub use cluster::node_state::NodeStatus;
pub use service::SharedState;
pub use service::SharedStateConfig;
pub use service::SharedStateSettings;

Modules§

cluster
RPC server and state-sync task for a fixed-leader shared state.
metrics
Instance-scoped metrics for shared-state nodes.
persistence
Disk persistence helpers for recoverable state snapshots.
protocol
Wire protocol messages and binary framing.
service
High-level entry point for a fixed-leader shared state service.
state
Deterministic state machines and the recovery/subscription layers on top.
transport
Network transport traits, channel workers, and simulated transport.