All jobs / Backend developer / Distributed Systems

Backend developer interview question · 3–5 years

The interviewer asks: “We need “all services succeed or none” across order, inventory and billing. What do you reach for?” Strongest answer?

The strongest answer

A saga: a sequence of local transactions with compensations if a later step fails. Two-phase commit across microservices is rarely available and couples availability to every participant.

Why it works

Exactly. Sagas trade atomicity for explicit compensations and a state machine you can operate. That's the 2026 default across service boundaries.

What a good answer covers

Answers that fall short

Who gets asked this

More Distributed Systems questions