nodejs有哪些好的消息队列选项? [英] What are good message queue options for nodejs?

查看:741
本文介绍了nodejs有哪些好的消息队列选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图在我正在使用node.js构建的小型Web应用程序中使用消息队列.我看了resque,但不确定是否合适.目标是基于套接字和后端的其他客户端操作将通知推送到客户端.我可以只用socketio来做到这一点,但我认为也许适当的消息队列可以使这个清理器更干净,而我不必重新发明轮子.

Looking to use a message queue in a small web app I'm building with node.js. I looked at resque but not sure that's appropriate. The goal is to push notifications to clients based on backend and other client actions with socketio. I could do this with just socketio but I thought maybe a proper message queue would make this cleaner and I wouldn't have to reinvent the wheel.

那里有什么选择?

推荐答案

您可以将 redis 与快如闪电的 node_redis 客户端.它甚至具有内置的 pubsub 语义.

you could use redis with the lightning fast node_redis client. It even has built-in pubsub semantics.

这篇关于nodejs有哪些好的消息队列选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆