Skip to content

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

  1. (Easy) Label each saga step and its compensating transaction for a given business flow
  2. (Easy) Identify choreography vs orchestration pattern from a diagram
  3. (Easy) Trace the outbox relay process step by step
  4. (Medium) Implement a choreography saga for a hotel booking (reserve room → charge card → send confirmation)
  5. (Medium) Design the state machine for an orchestration saga with at least 3 failure paths
  6. (Medium) Implement the outbox relay with idempotency
  7. (Hard) Debug a saga that fails to execute compensating transactions correctly
  8. (Hard) Implement CQRS with a separate read model updated via events
  9. (Expert) Design an event-sourced aggregate with snapshot optimization for a bank account