php与异步任务
php与异步任务
swingcoder 发表于6个月前
php与异步任务
  • 发表于 6个月前
  • 阅读 11
  • 收藏 1
  • 点赞 0
  • 评论 0
  • GearMan - this answer was written in 2009, and since then GearMan looks a popular option, see comments below.
  • ActiveMQ if you want a full blown open source message queue.
  • ZeroMQ - this is a pretty cool socket library which makes it easy to write distributed code without having to worry too much about the socket programming itself. You could use it for message queuing on a single host - you would simply have your webapp push something to a queue that a continuously running console app would consume at the next suitable opportunity
  • beanstalkd - only found this one while writing this answer, but looks interesting。beanstalkd默认的队列比较少,需要调用-z参数,或者在启动脚本里添加配置BEANSTALKD_MAX_JOB_SIZE=524280 
  • pthreads php多线程扩展,mac下与Php7支持有点问题
  • 国产的swoole

fopen/fsocket/curl/popen/fork方式基本不靠谱

标签: 异步任务
共有 人打赏支持
粉丝 27
博文 206
码字总数 49650
×
swingcoder
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: