pa-05 — Execution
Prerequisites
- Go ≥ 1.25 (stdlib only, offline).
One-shot
cd pa-05-delivery-semantics-saga && bash scripts/verify.sh
Per-language workflow (Go)
cd pa-05-delivery-semantics-saga/src/go
go test -race -count=1 ./... # outbox at-least-once, saga compensation + resume
go run ./cmd/sagasim
Package map
| File | What |
|---|---|
delivery/outbox.go | atomic state+event write, relay (at-least-once), idempotent sink, broken-dual-write contrast |
delivery/saga.go | orchestrated saga: forward steps + reverse compensation + RunFrom (crash resume) |
cmd/sagasim | outbox vs broken dual write; saga happy-path + compensation |
See GUIDE.md for the deep dive.