Why is PHP traditionally not 'async' by default, and what are the tradeoffs of using tools like Swoole or RoadRunner to achieve concurrency?
Last updated
PHP uses a share-nothing, synchronous model (PHP-FPM): each request boots fresh, blocks on I/O, then dies. This is simple and crash-isolated but leaves workers idle while waiting.
Swoole(C extension with event loop and coroutines) andRoadRunner(Go server keeping PHP workers warm) avoid per-request bootstrap and enable concurrent I/O for big throughput gains.The cost: long-lived workers let state persist, so memory leaks and stale globals become real bugs. Many libraries assume share-nothing, and debugging gets harder.