Queue backlog, poison messages and safe redrive 00:00:01 A queue grows even after traffic normalizes The morning rush ends at a print service. The oldest waiting job continues to age. Mina can see busy workers, yet one malformed ticket keeps coming back to the front. Busy attempts and finished jobs belong on separate counters. The oldest pending job normally waits one minute. It now waits twenty-four. With eighty arrivals each second and capacity for one hundred successful completions, each second could remove twenty jobs from the backlog. That depends on those completions actually taking place. Queue depth counts outstanding messages, while oldest age tells you how long some work has waited. In a simple steady interval, backlog shrinks only if successful completions exceed incoming work. 00:00:49 Use successful completions in the drain estimate Retries consume capacity and may deliver an operation more than once. A redrive must preserve the logical operation’s identity. Mina separates attempts that end in another delivery from jobs that actually finish. A worker picking up a ticket is an arrival at the worker, not a departure from the system. Compare the number of distinct completed jobs against the number that just arrived. That estimate fails when retries or ordering block useful completions. Isolate repeat failures, repair the consumer and replay a bounded sample while checking for duplicate effects. 00:01:29 Find the job that keeps returning How long would twenty-four hundred eligible jobs take to drain at that net rate, and which fact makes the estimate unreliable today? Divide twenty-four hundred by twenty. The result is one hundred twenty seconds, or two minutes. When repeated failures occupy slots or preserve a blocked ordering dependency, the useful net rate may be much smaller. Quarantine the failing input with its identity and repair handling. If eligible backlog falls while oldest age grows, examine stranded groups or repeat failures rather than scaling all consumers. 00:02:08 Redrive a bounded sample After a bounded replay the oldest pending age falls to three minutes. Arrivals and failed attempts both matter. Only net successful drain reduces the waiting work. Mina checks useful completions and duplicate effects, then increases the replay rate carefully. An accurate drain estimate begins with successful work crossing the finish line.