Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Design Basics

scil edited this page Dec 1, 2018 · 2 revisions

Key concept: swoole worker.

Swoole is an event-based tool. The memory allocated in Swoole worker will not be freed 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.