advancedSystem Design with Transactions
Design the money-movement part of a UPI-like system. What pattern do you use, and why not a single distributed transaction?
A saga (likely orchestrated by a central switch), because the two banks' ledgers are independent systems — a single cross-bank distributed transaction isn't realistic at that scale/ownership boundary; failures are handled via a compensating reversal credit.
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