Concurrency
Concurrency, sometimes misspelled concurency, is a concept in computing where multiple tasks are in progress at the same time.
PHP uses several ways to handle concurrency:
- Externally, by the webserver or PHP-fpm
- Internally, with forked processes, with pcntl
- Internally, with threads, with parallel
- Cooperating, with fibers
- Non-blocking IO, with swoole or amphp.
See Also
- Understanding Concurrency in PHP
- Understanding Fibers in PHP: A New Way to Handle Concurrency
- PHP is 5x Faster Than NestJS? Rethinking High-Load with Swoole