有没有好的PHP脚本运行框架推荐?基于队列的脚本触发器

发布于 2025-01-06 11:33:18 字数 70 浏览 5 评论 0原文

我正在寻找一个好的框架来结合队列服务运行 PHP 后端业务逻辑。该框架需要能够维持大量的 php 进程正常运行并等待队列事件。

I'm looking for a good framework to run PHP back-end business logic in combination with a queue service. the framework needs to be able to maintain large number of php processes up and running waiting for queue events.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

那些过往 2025-01-13 11:33:18

至于框架,您可以使用任何好的框架,我不会进入框架辩论,所以让我们看看在队列处理方面什么是实用的:

  • Zend Framework 有 Zend_Queue 为您提供 Apache ActiveMQ、数据库、Memcache、Zend Server 和阵列的适配器(用于测试)。这是一个非常好的开箱即用的功能集,您可以扩展它以包装任何其他队列管理工具。
  • 这篇博文讨论使用 Symfony2 实现 beanstalkd 框架
  • 包装一个linux 工具是另一种选择

所以有很多选择,我给出的唯一具体建议是不要犯用关系数据库实现队列系统的错误

如果这不能回答您的问题,我想您必须向我们提供有关您的要求的更多详细信息。

As for the framework you can use any of the good frameworks out there and I'm not going into the framework debate, so let's just see what would be practical in terms of queue handling:

  • Zend Framework has Zend_Queue which gives you adapters for Apache ActiveMQ, Database, Memcache, Zend Server and array (for testing). That's a pretty good out of the box feature set and you can extend it to wrap any other queue management tool.
  • This blog post talks about implementing beanstalkd with the Symfony2 framework
  • Wrapping a linux tool is another option

So there are tons of options, the only concrete advice I would give is not to make the mistake of implementing the queue system with a relational database.

If this doesn't answer your question I guess you have to give us more details about your requirements.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文