Expand description
Storage backends and the persistence contract used by the server.
Storage is the central abstraction. The built-in implementations are:
memory::InMemoryStoragefor ephemeral development and testsfile::FileStoragefor append-log persistence on the local filesystemacid::AcidStoragefor crash-resilient redb-backed persistence
Modules§
- acid
- Crash-resilient redb-backed storage with sharded databases.
- file
- File-backed storage using one append-only log per stream.
- memory
Structs§
- Create
With Data Result - Outcome of
Storage::create_stream_with_data. - Message
- Stored message plus bookkeeping metadata used by storage backends.
- Read
Result - Snapshot returned by
Storage::read. - Stream
Config - Immutable stream configuration captured at create time.
- Stream
Metadata - Stream-level metadata returned by
Storage::head.
Enums§
- Create
Stream Result - Outcome of
Storage::create_stream. - Producer
Append Result - Outcome of
Storage::append_with_producer.
Traits§
- Storage
- Persistence contract for Durable Streams server state.