Module storage

Module storage 

Source
Expand description

Storage layer for d-engine.

This module provides pluggable and extensible storage components for persisting Raft state and application data. It defines core traits, adapters, and utilities to support different backend implementations.

Key responsibilities include:

  • Managing Raft log entries and snapshots.
  • Providing an abstraction layer (StorageEngine) for persistence.
  • Supporting in-memory buffering and disk-backed storage (e.g., via Sled).
  • Coordinating state machine application and snapshot lifecycle.

This module is designed so developers can easily implement custom storage backends without changing the Raft protocol logic.

Modules§

state_machine_test
storage_engine_test

Structs§

FileLogStore
File-based log store implementation
FileMetaStore
File-based metadata store implementation
FileStateMachine
File-based state machine implementation with persistence
FileStorageEngine
Unified file-based storage engine

Traits§

LogStore
MetaStore
Metadata storage operations
StateMachine
StorageEngine
High-performance storage abstraction for Raft consensus