0

你对使用 RabbitMQ 作为消息代理有什么看法,如果我想在我的 nodejs 项目中使用 socket.io 做可扩展的应用程序,与我将使用的 redis 相比?

在其他场景中可以使用 Rabbit 或者有其他更强大的工具。

你有什么建议我在 Nodejs 中构建一个可扩展的应用程序。

我正在阅读这篇文章 http://blog.cloudfoundry.com/2013/01/31/scaling-real-time-apps-on-cloud-foundry-using-node-js-and-rabbitmq/

我需要你的反馈。谢谢。

4

2 回答 2

2

Before you start using RabbitMQ, you should try looking into using the nodeJS forking for processes. It has a built-in message queue that will help you see what you need to do.

The built-in messaging queue that's built into node even allows you to pass sockets and http connections, which is pretty great!

Here's the link to forking child processes in the documentation: NodeJS Documentation: Child Processes

And here's a relevant post from before. Prior StackOverflow Post

Try this before you start playing around with RabbitMQ. I tried doing that, and actually came across some difficulty with both implementation and scaling.

于 2013-09-05T20:20:45.100 回答
0

您可能会发现ZeroMQ满足您的需求。它不需要单独的代理实体。您将需要在您的机器上使用构建工具,因为绑定包含一个 C++ 组件。

于 2013-10-31T21:02:48.723 回答