This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Best Practice
scil edited this page Oct 4, 2018
·
13 revisions
- Edit server conf file fly.conf.php.
-
Try to keep
const LARAVELFLY_COROUTINE = true;
-
Try your best to make as many of the items in LARAVELFLY_SERVICES to be true as possible. ( Exception: 'redis' 'filesystem.cloud' and 'broadcast' to be 'use' when they are used.)
-
All of wildcard event listeners , are registered on worker (before any requests), then event listeners cache are helpful. Debugbar would disable the cache because it uses "*".
-
Swoole workers run in different process, vars are not shared by different workers. Methods to share vars between workers:
-
Swoole tools like Table, Channel, ...
-
Yac, Redis, Memcached, ...
- Start
- Coding Guideline
- Deploy and OS Configuration
- New API
- Design
- Dev about Mode Map
- Dev about Mode Backup