All challenges
Multiple ChoiceHard 45s

Compensating transaction design

In a saga, what must a compensating action be to be safe under retries?
Options
  1. 1Synchronous and blocking so the saga waits for it to fully complete
  2. 2Idempotent, so repeated invocations do not over-compensate
  3. 3Stateful and order-dependent so it relies on prior observed state
  4. 4Guaranteed never to fail under any circumstances at all

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