felipe@forge:~/log$ open 2026-10-08.md
The queue learned to wait
Last Tuesday the queue depth graph did the thing graphs do when they want attention. A red hill. Someone typed the sentence we always type: we should drain it faster.
Faster was available. We could have raised the consumer count and let the database find out about our courage in production. We had done that once, in the spring, and the database remembered.
So we did the less heroic thing. We capped the producers. The ingress service started answering slowly on purpose when the queue passed a line we picked on a whiteboard and then actually measured. Clients retried. A few of them got impatient, and that was fine. Impatient is cheaper than a locked table.
A backlog is a place to stand. A collapse is a place to explain yourself.
By morning the hill was a slope, then a field. No page. No story for the status channel, which is how I like my status channel.
I wrote the number down in the runbook in words, not just in the config, because a cap without a reason gets deleted by the next person who wants a graph to look brave.
The config that survived review is deliberately dull:
ingress.max_in_flight = 40
queue.delay_after = 1200
queue.delay_ms = 350
Forty in flight is not a law of nature. It is the number where our database stopped sounding like a fridge full of bees. If you change it, change the sentence in the runbook in the same commit. The sentence is the part I trust.