📋 Logarithmic auto-scaling for #Laravel #Horizon — a third autoScalingStrategy value that stops huge queue spikes from starving smaller realtime queues #PHP #Queues
🧵👇
📋 Logarithmic auto-scaling for #Laravel #Horizon — a third autoScalingStrategy value that stops huge queue spikes from starving smaller realtime queues #PHP #Queues 🧵👇
0 vue
Publié le 15/09/2026 02:30
📋 Logarithmic auto-scaling for #Laravel #Horizon — a third autoScalingStrategy value that stops huge queue spikes from starving smaller realtime queues #PHP #Queues
🧵👇
1 commentaire
?
⚡ With the size strategy a queue holding 100,000 jobs gets roughly 10x the weight of a 10,000-job queue, so a midnight batch grabs nearly the whole worker pool while constantly-fed queues sit at their one-worker minimum and keep growing
🎯 The idea: normalize queue sizes logarithmically before calculating worker share. log10(2,000) is 3.3, log10(100,000) is 5.0 — a 50x size difference shrinks to less than 2x in weight