|
|
|
|
|
by Horos
101 days ago
|
|
Isn't a dedicated worker pool with priority queues enough to get predictable P99 without leaving Go? If you fix N workers and control dispatch order yourself, the scheduler barely gets involved — no stealing, no surprises. The inter-goroutine handoff is ~50-100ns anyway. Isn't the real issue using `go f()` per request rather than something in the language itself? |
|
https://github.com/php/frankenphp/pull/2016 if you want to see a “correctly behaving” implementation that becomes 100% cpu usage under contention.