Distributed booking saga
Your task
Design a saga-based booking system that reserves a flight, a hotel, and a car as a single logical trip across three vendor services with separate databases, at 2k trips/sec. Each vendor call can succeed, fail, or time out ambiguously, and vendors may be slow for seconds. Compare orchestration vs choreography, and explain how you guarantee the trip is fully booked or fully cancelled even when a compensation itself fails.
It covers
- Saga orchestration
- Compensation
- Idempotency