Asked at Reliance Jio

You're building the payment orchestration layer for a marketplace platform (like Uber or DoorDash). When a customer...

You're building the payment orchestration layer for a marketplace platform (like Uber or DoorDash). When a customer pays $50 for a food delivery, the following must happen atomically: 1. Charge the customer's credit card $50 2. Credit the restaurant $42 (84% revenue share) 3. Credit the delivery driver $6 4. Credit the platform $2 (platform fee) 5. Deduct the $3 promotional discount from the marketing budget ledger 6. Record the transaction for tax reporting These operations span 4 different services (Payments, Restaurants, Drivers, Accounting) and 3 external systems (Stripe, a banking API, tax service). The system processes 50,000 payments per minute.A payment starts. Steps 1-3 succeed. Step 4 (platform fee credit) fails because the accounting service is down. Design the distributed transaction strategy

System DesignOn-siteSDE-2
0 answers