All Questions
Managing Long Running Tasks hard

What is a 'Poison Pill' (or Message of Death) in a queue, and how do you handle it?

  1. A A virus.
  2. B A malformed message that crashes the consumer code immediately. Since the consumer crashes, the message is not deleted and goes back to the queue (due to Visibility Timeout), causing an infinite crash loop. Solution: Limit Maximum Receives and move to Dead Letter Queue (DLQ).
  3. C A delete command.
  4. D A message that deletes the database.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions