Skip to main content

Module storage

Module storage 

Source
Expand description

Storage backends and the persistence contract used by the server.

Storage is the central abstraction. The built-in implementations are:

Modules§

acid
Crash-resilient redb-backed storage with sharded databases.
file
File-backed storage using one append-only log per stream.
memory

Structs§

CreateWithDataResult
Outcome of Storage::create_stream_with_data.
Message
Stored message plus bookkeeping metadata used by storage backends.
ReadResult
Snapshot returned by Storage::read.
StreamConfig
Immutable stream configuration captured at create time.
StreamMetadata
Stream-level metadata returned by Storage::head.

Enums§

CreateStreamResult
Outcome of Storage::create_stream.
ProducerAppendResult
Outcome of Storage::append_with_producer.

Traits§

Storage
Persistence contract for Durable Streams server state.