expertWhat Is a Transaction?

When does the "single transaction" mental model stop being applicable at all?

Once a logical business operation spans more than one independently-deployed database or service — at that point you need Saga, Outbox, or 2PC (Chapters 16–18), not a bigger local transaction.

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 What are the only two possible endings of a transaction?← Back to all Transaction Mastery questions