aion-store
Persistence contracts and in-memory event stores for Aion durable workflows. The crate defines the async event-store traits that engines use for history, run-chain summaries, timers, and visibility, plus a correct non-durable InMemoryStore implementation for tests and local development.
Install
[]
= "0.4.0"
Key public types
ReadableEventStore,WritableEventStore, andEventStoredefine the persistence contract.WriteTokenprovides optimistic append fencing for workflow histories.RunSummaryandTimerEntrydescribe persisted run and timer state.VisibilityStore,VisibilityRecord, andListWorkflowsFiltermodel workflow search.InMemoryStoreis the reference in-memory implementation.
Minimal usage
use ;
let store = default;
let workflow_id = new_v4;
let history = store.read_history.await?;
assert!;
# Ok::