expertSystem Design with Transactions
Why is 2PC generally the wrong answer in a ride-sharing or e-commerce system design interview?
These systems need high availability and independently scalable services; 2PC's blocking coordinator model directly works against both, and eventual consistency via Saga/Outbox is an acceptable, well-handled trade-off for this domain.
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