advancedCapstone — A Fault-Tolerant Order-Payment System
4. "Design the payment flow for a food delivery app spanning Order, Payment, and Restaurant services. What pattern, and why not a distributed transaction?" (4 minutes)
Saga (Chapter 17), with specific compensations named for each step, and a clear explanation of why 2PC (Chapter 16) is the wrong choice at this scale/availability requirement.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response