Code RoomPoison message handling
MediumPrep Room Coding #3552

Poison message handling

System designAlgorithms & data structuresMid–Senior~30 min

A high-throughput stream consumer (150k msgs/sec) occasionally hits a 'poison message' it can't process — malformed payload, a schema it can't decode, or one that triggers a downstream 500. Currently the consumer retries the bad message forever, blocking the partition behind it and stalling the whole pipeline until an engineer manually skips it at 3am. Design poison-message handling that keeps the pipeline flowing, doesn't lose data, and lets the bad messages be inspected and reprocessed.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts (data model, bottlenecks, consistency, failure modes) and name the trade-offs you are making.

Clarify3:30 left
Estimate3:30 planned
Design10:00 planned
Deep dive8:00 planned
Failure5:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.