Benchmarking Cold-Start Scheduling and Worker Blocking in Symfony 8.2 Messenger
You upgraded to Symfony 8.2, replaced four messenger:consume processes with one --concurrency=4, and the dashboard looks better: one connection to the broker instead of four, one process to supervise. Then a deploy restarts the worker, and for a minute the short messages that used to take half a second sit in the queue while three of the four children do nothing.
The cause is a design decision in the new parallel worker. It cannot know whether a handler batches until it has run one message of that class, so the first message of every bus, transport and class combination runs alone, as a probe. On 8.2.0-BETA2 the probe paused consumption for the whole worker, and what the probe learned lived in the memory of the parent process, so every restart paid it again. A fix merged on 23 November 2026 and shipped in 8.2.0-RC1 scopes the pause to the probed...
Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE