System Design

Why sagas beat two-phase commit when a write spans services

7 min read A payment succeeds but the inventory write fails, and the interviewer wants to know how you keep an order consistent across three services. Read article