SpinTheMic
Pro

Interview practice question

Avoiding 2PC between services

System Design · Distributed Systems · Intermediate

An architect suggests two-phase commit to keep the orders and payments services consistent. What would you suggest instead and why?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • 2PC: blocking, slow, coordinator SPOF.
  • Saga with compensations.
  • Outbox for reliable events.
  • Idempotent steps.
  • Clear intermediate states.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics