praborrow-lease 0.7.0

Lease consensus logic (Raft/Paxos). Manages distributed agreement on Sovereign lease validity.
Documentation

Lease Consensus Logic

This crate implements the consensus algorithms required to agree on Lease Validity.

Features

  • std - Enable standard library (includes tokio)
  • net - Enable networking (UDP transport)
  • grpc - Enable gRPC transport with tonic
  • tls - Enable TLS/mTLS support
  • observability - Enable Prometheus metrics
  • full - Enable all features

Architecture

┌─────────────────────────────────────────────────────────────┐
│                     ConsensusEngine                         │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────────────┐ │
│  │  RaftEngine │  │ RaftNetwork │  │ ReplicatedStateMachine│ │
│  └─────────────┘  └─────────────┘  └─────────────────────┘ │
│         │               │                    │              │
│         ▼               ▼                    ▼              │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────────────┐ │
│  │ RaftStorage │  │GrpcTransport│  │   StateMachine      │ │
│  │ (Sled/Mem)  │  │ (or InMem)  │  │   (User-defined)    │ │
│  └─────────────┘  └─────────────┘  └─────────────────────┘ │
└─────────────────────────────────────────────────────────────┘