Skip to content
scil edited this page Oct 4, 2018 · 13 revisions
  1. 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.)

  1. 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 "*".

  2. 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, ...