Swoole is PHP tool that allow implement async php-server.
To use CPU resource more optimal is possible by Swoole.
Server can be run in different modes: sync and async.
In sync mode it is possible to do development as usual.
In async mode the server is working for performance.
This project shows how Swoole can be used to crawl disk/web
resource in multiple async requests. Project shows how server
can be organized for optimal development.
- PHP 8.1
- Swoole (openswoole)
- Symfony 6
- TypeScript
- Vue 3
- Docker
- Makefile
make install
Install environment.make start
Start environment.make swoole-serve
To run async server.make php-serve
To run sync server.make node-serve
To run server to compile js.
In result Swoole-server is 4x productively than PHP-server
with 4 CPU cores.