All jobs / Backend developer / Distributed Systems

Backend developer interview question · 3–5 years

The interviewer asks: “The outbox publisher crashed after sending but before marking sent. What happens?” Strongest answer?

The strongest answer

It will send again. That's why consumers are idempotent and why the message carries a stable event id. I don't try to make the publisher exactly-once in-process.

Why it works

Exactly. At-least-once plus an event id is the robust design. Exactly-once is a property you approach with idempotent consumers, not a flag on the producer.

What a good answer covers

Answers that fall short

Who gets asked this

More Distributed Systems questions