-
Notifications
You must be signed in to change notification settings - Fork 41
Design Basics
scil edited this page Jul 25, 2018
·
2 revisions
Swoole is an event-based tool. The memory allocated in Swoole worker will not be free'd after a request. A swoole worker is like a php-fpm worker, every swoole worker is an independent process. When a fatal php error occurs, or a worker is killed by someone, or 'max_request' is handled, the worker would first finish its work then die, and a new worker will be created.
Laravel's services/resources can be loaed following the start of swoole server or swoole worker.