All challenges
Multiple ChoiceHard 45s

Saga vs 2PC

Why do distributed systems prefer a Saga over two-phase commit for long-lived business transactions?
Options
  1. 1Saga removes the need for idempotent handlers. Each step runs exactly once by guarantee.
  2. 2Saga guarantees strict ACID semantics. It holds locks over every participant.
  3. 3Two-phase commit is impossible against SQL databases. They lack the required primitives.
  4. 4Saga avoids holding locks across services and uses compensating actions for eventual rollback

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle