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

Next Step

Continue to 5. "How do you guarantee the 'order placed' event is never lost, even if Kafka is briefly down?" (90 seconds)← Back to all Transaction Mastery questions