A queue that drains instantly is either underprovisioned in work or overprovisioned in workers. Somebody is paying for that second case every month.
Every dashboard I have inherited treats queue depth as a fault. Page if depth > 1000. Scale workers when depth grows. The implicit model is that a healthy system has an empty queue.
That model is wrong for any workload with bursty arrival and expensive downstream work. If your workers can always drain instantly, you sized the fleet for the peak and are idle for the other 90% of the day.
Queue depth alone tells you nothing. What you want is time to drain: depth divided by sustained throughput, compared against the deadline your consumers actually care about.
drain_seconds = depth / throughput_per_second
slack_seconds = deadline_seconds - drain_seconds
# healthy: slack > 0 at p99
# degrade: slack near 0
# page: slack < 0, or depth growing monotonically for 10 min
We replaced three queue-depth alerts with a single drain-time alert. Page volume dropped by 70% and we did not miss a real incident in six months.
A failing consumer with retries multiplies the depth without adding work. If ten percent of messages fail and retry three times, the queue grows by 30% on a steady input — a false signal that looks exactly like a traffic spike.
Measure first-attempt depth separately from retry depth. If you cannot separate them, you cannot tell a traffic problem from a poison-message problem.
When drain time exceeds the deadline, the honest response is to reject new work with a clear error, not to grow the queue until memory runs out. A 429 with a retry hint is a service; a silently growing backlog is a promise you will break at 3 a.m.
We cap depth at three times the p99 burst and shed beyond it. Shed messages are counted, logged with a reason, and never retried automatically — the producer decides, because the producer knows whether the work still matters.