pa-03 — Verification

One command

cd pa-03-event-driven-architecture && bash scripts/verify.sh

What the tests prove

TestInvariant
TestFanOutone publish reaches all subscribers
TestTopicIsolationa subscriber never sees other topics' events
TestRetryThenSucceeda transient failure recovers via retries; not dead-lettered
TestPoisonGoesToDLQa permanent failure is dead-lettered after maxRetries+1 attempts; never delivered
TestIdempotentDedupduplicate ids are processed once (effectively-once)
TestDistinctEventsBothRundistinct ids each run

All under -race.

What "green" does NOT guarantee

  • Synchronous, in-memory bus. Production is a durable partitioned log (pa-04) with async consumer groups; backpressure/ordering are exercises.
  • No cross-event ordering. Ordering is per-partition (pa-04), not global.
  • No tracing across the async hop — the hard observability problem (gw-11), out of scope here.