We use cookies for site analytics. Accept to help us understand how the site is used. See our Privacy Policy for details.
Two-phase commit, sagas (choreography vs orchestration), TCC, idempotency keys, and the compensation logic that turns multi-service writes into something a customer-support agent can untangle.
Design a transaction protocol that spans multiple independent services - payments, inventory, shipping, notifications - where each owns its own database and you cannot use a single ACID transaction across them. The end-state must be consistent: either every service commits its piece, or every service rolls back. Failures (network blips, service crashes, duplicate retries) must not leave the system half-committed.
This is the question that separates "I read the saga blog post" from "I have run this in production". Strong candidates explain why 2PC is rare in practice, walk through a concrete saga (orchestration vs choreography), justify their idempotency story, and own the failure modes - what happens when a compensating action itself fails.
Asking these before diving into a solution is the difference between a "hire" and a "no signal" rating. Pick the questions whose answers would change your design.
Capacity estimation · architecture with all 9 components explained · 6 deep dives · trade-off analysis · 8 common follow-up questions
Get full access to gitGood.dev with a subscription.
Try everything free for 10 days. Cancel anytime.
10-day trial, then $5/mo - or $40/yr ($3.33/mo, save 33%). Cancel anytime.
Idempotency keys, double-spend prevention, the ledger model, and why eventual consistency is wrong for balances. The interview where ambiguity costs you money.
Raft leader election, log replication, snapshots - and the CAP theorem in operational practice. The substrate every other distributed system stands on.
Reading is the floor. The interview signal is in walking through this live with someone probing follow-ups. Use the AI mock interview to practice talking through requirements, architecture, and trade-offs out loud.
Start an AI mock interview →