:: features
Why Saga?
Compensation
Automatic rollback when steps fail. Define forward and backward actions for each saga step.
Checkpointing
Persist saga state at each step. Resume from the last checkpoint after crashes.
Type-Safe Steps
Each step declares its input, output, and compensation types. The compiler validates the chain.
Parallel Execution
Run independent steps concurrently. The saga engine manages fan-out and fan-in.
Dead Letter Queue
Failed sagas are captured with full context for manual review and retry.
Introspection
Inspect running sagas, their state, and compensation history in real time.
:: ecosystem
Part of the HexDI Stack
Saga integrates seamlessly with the HexDI dependency injection ecosystem. Use it standalone or compose it with other libraries.
Explore HexDI