AlgoViz

Queue backlog, poison messages and safe redrive

medium 6 min

Queue depth counts outstanding messages, while oldest age tells you how long some work has waited.

Where it shows up

The same pattern appears across everyday software.

  • A queue grows even after traffic normalizes

    A consumer repeatedly fails one malformed message. If arrivals are 80 jobs/s and successful capacity is 100 jobs/s, draining 2400 eligible jobs takes about two minutes at a net 20/s. 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.

  • Verifying the intervention

    Quarantine the failing input, validate idempotent handling and redrive gradually while age falls. If eligible backlog falls while oldest age grows, examine stranded groups or repeat failures rather than scaling all consumers.