Skip to content

Example 17: Saga State & Compensation #16

Description

@patterncatalyst

Chapter

_docs/17-appendix-d-sagas.md — Saga State & Compensation

Example Path

examples/17-sagas/

What to demonstrate

  • Orchestrated saga across order/payment/inventory
  • State machine persistence surviving crashes
  • Compensation flow unwinding committed steps in reverse
  • Threading step output to the next without coupling

Stack

  • Infra: Podman — Postgres + Kafka + LGTM
  • Language: Go (state machine with sony/gobreaker) or Python
  • Priority: HIGH — key distributed pattern

Deliverables

  • compose.yaml
  • Saga orchestrator service
  • Participant services (payment, inventory)
  • Compensation handlers
  • README.md
  • verify.sh
  • Flip chapter footer to verified

Metadata

Metadata

Assignees

No one assigned

    Labels

    exampleRunnable example implementationhigh-priorityCore pattern, build earlypodman-stackExample uses podman compose infrastructure

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions