All jobs / Backend developer / Distributed Systems

Backend developer interview question · 1–3 years

A RabbitMQ consumer acknowledges each message as soon as it arrives and then processes it. Messages go missing whenever a consumer pod restarts.

What do you change?

The strongest answer

Acknowledge after the work has committed rather than on receipt — an unacknowledged message is redelivered when the connection drops — and set a prefetch so one consumer does not hold more than it can finish

Why it works

Exactly — the ack is the consumer’s promise that the work is done, and prefetch keeps the redelivery set small.

What a good answer covers

Answers that fall short

Who gets asked this

More Distributed Systems questions