How it works

Swoole is different from the traditional PHP model, it is running in CLI mode.

How Swoole works

The differences between Swoole with PHP-FPM the traditional PHP model are:

  • Swoole forks a number of worker processes based on CPU core number to utilize all CPU cores.
  • Swoole supports Long-live connections for websocket server or TCP/UDP server.
  • Swoole supports more server-side protocols.
  • Swoole can manage and reuse the status in memory.