swoole模块及使用场景
By admin
- One minute read - 20 words一、多任务及多进程: 用来大量采集数据时使用,再利用多进程提高效率
http://blog.csdn.net/koastal/article/details/52871316 http://www.tuicool.com/articles/ZFNFvqm
二、定时任务
https://github.com/LinkedDestiny/swoole-doc/blob/master/src/03/swoole_timer_server.php
swoole新版本已经废除掉了 timer 指令,请使用 swoole_timer_tick 代替。参考:
https://wiki.swoole.com/wiki/page/480.html
或
https://wiki.swoole.com/wiki/page/414.html
三、执行异步任务(耗时任务处理)
https://wiki.swoole.com/wiki/page/162.html https://wiki.swoole.com/wiki/page/481.html https://wiki.swoole.com/wiki/page/134.html
更多定时器请参考: https://wiki.swoole.com/wiki/search/?q=tick%E5%AE%9A%E6%97%B6%E5%99%A8