Skip to content

saga capability

saga adds a saga orchestrator to your Go service for coordinating multi-service transactions with rollback compensation.

  • Saga definition
  • Step executor
  • Compensation logic
  • State persistence

Use saga when you need distributed transactions that span multiple services and must be reversible. Common in order processing (reserve inventory → charge payment → ship) where any step failure should trigger compensation steps.

Requires: event-bus

Suggests: observability, outbox

Terminal window
verikt new my-service --language go --cap event-bus,saga
# or add to an existing service:
verikt add saga

event-bus

Required event bus for saga coordination.

outbox

Ensure saga events are reliably published.

observability

Trace saga execution steps across services.