Exercises: Module 03 — Async Patterns¶
Instructions¶
Complete each exercise in order.
[!NOTE] Full exercises will be written when this module's README is expanded.
Planned Exercise Coverage¶
- (Easy) Label each saga step and its compensating transaction for a given business flow
- (Easy) Identify choreography vs orchestration pattern from a diagram
- (Easy) Trace the outbox relay process step by step
- (Medium) Implement a choreography saga for a hotel booking (reserve room → charge card → send confirmation)
- (Medium) Design the state machine for an orchestration saga with at least 3 failure paths
- (Medium) Implement the outbox relay with idempotency
- (Hard) Debug a saga that fails to execute compensating transactions correctly
- (Hard) Implement CQRS with a separate read model updated via events
- (Expert) Design an event-sourced aggregate with snapshot optimization for a bank account