🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Distributed Transactions and Sagas: all 10 questions

Quiz: Distributed Transactions and Sagas · Question 10 of 10

The outbox relay may publish the same event twice after a crash. What must consumers do?

The outbox relay may publish the same event twice after a crash. What must consumers do?

  1. A.Assume it never happens
  2. B.Stop the relay permanently
  3. C.Be idempotent, for example by remembering processed event ids
  4. D.Delete the outbox table
Answer & explanation

Correct answer: Be idempotent, for example by remembering processed event ids

Delivery is at least once, so processing the same event twice must be harmless.

Can you get the rest right without peeking?

Take the timed Quiz: Distributed Transactions and Sagas quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →