Code RoomFIFO queue head-of-line blocking
HardPrep Room Coding #4574

FIFO queue head-of-line blocking

On-callReliability & on-callAlgorithms & data structuresSenior–Staff~40 min

An SQS FIFO queue `inventory-commands` (`MessageGroupId = warehouse_id`) processes per-warehouse commands in order. At 12:40 overall throughput collapses: `ApproximateNumberOfMessagesVisible` climbs to 70k, oldest-age rises, but the worker fleet is mostly idle — few messages in flight. Dashboards: most active message groups are draining, but one `warehouse_id` (the new mega-DC onboarded today) has thousands of queued commands. SQS FIFO delivers in-order *within* a group and won't release the next message in a group until the current one is acked. No errors, no DLQ growth. How do you triage and mitigate?

What a strong answer looks like

Stop the bleeding first (mitigate), then form hypotheses from real signals. Separate root cause from symptom, communicate status as you go, and close with what prevents a repeat.

0:00 of about 40 min
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.