Distributed Transactions & Sagas

One database txn

Checkout creates an order row, line items, and decrements inventory, all in one Postgres today. A teammate wants microservices immediately with 2PC. Argue for the single-DB boundary now and when you would split later.

Advanced drill question.

Write it as you would say it in the interview: assumptions, the design, tradeoffs, and what you would do next. The draft saves in this browser.

Review the lesson