Heroku 上的延迟作业与 RabbitMQ 有何优缺点?
I would like to write a Node.js
UDP server on Heroku and plan to queue up the data to a Rails instance (dyno) for it to process? What are the pros and cons of using Delayed Job vs RabbitMQ? Thanks, Chirag
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些都很难比较! RabbitMQ是一个消息系统,而delayed_job是一个数据库支持的任务队列。
使用 RabbitMQ,您可以创建任务队列,但这只是众多用例之一。
人们可以说,delayed_job 是任务队列的一种非常有限的实现,因为数据库不适合这种工作。
(参见例如http://www.rabbitmq.com/resources/RabbitMQ_Oxford_Geek_Night.pdf)
对于简单的设置来说,数据库可能工作得足够好,但最终可能会
散架。
如果您想要一个任务队列,我建议您寻找一个支持 RabbitMQ 的任务队列。
These are very hard to compare! RabbitMQ is a messaging system, while delayed_job is a database-backed task queue.
With RabbitMQ you can create a task queue, but that is just one of many use cases.
One could say that delayed_job is a very limited implementation of a task queue,, as the database is not suited for this kind of work.
(see e.g. http://www.rabbitmq.com/resources/RabbitMQ_Oxford_Geek_Night.pdf)
The database may work good enough for simple setups, but it is likely to eventually
fall apart.
If you want a task queue, I suggest you look for one that supports RabbitMQ.