Storage API Reference¶
Pluggable storage backends for persistent and in-memory state management.
Durability
¶
Bases: str, Enum
Delivery semantics for handler execution.
- AT_MOST_ONCE: Fire-and-forget. No logging, no dedup. Fastest.
- AT_LEAST_ONCE: Logs every call to event_log. Retries may cause duplicates.
- EXACTLY_ONCE: Logs + idempotency. Duplicate calls return cached result.
Source code in src/istos/consistency/storage.py
InMemoryStoragePlugin
¶
Thread-safe in-memory storage with full durability support. Data is lost on restart — use for testing and development.
Source code in src/istos/consistency/storage.py
StoragePlugin
¶
Bases: Protocol
Unified interface for storage backends.
Every storage must support all operations — the handler's durability
parameter decides which ones are actually called.