生产者(设备)和消息服务器(Apache Qpid 或 RabbitMQ)之间的负载平衡

发布于 2024-10-11 13:37:25 字数 933 浏览 7 评论 0原文

最近,我开始从事一个需要实现消息传递的项目,可行的选项是:Apache Qpid 或 RabbitMq ,我的任务是这样的:

+A+>>。[百万设备(生产商)-- 连接到 --消息服务器(集群 -- Qpid 或 RabbitMQ)] { 负载平衡)

然后

+B+ >>.[消息服务器(集群 -- Qpid 或 RabbitMQ) -- 连接到 -- GateWay 服务器(集群)]

然后

+C+ >>。[GateWay 服务器(集群)-- 连接到 -- Internet Explorer/浏览器(消费者)]

请参阅 +A+ >> ;-- 我通常需要使用消息传递来进行负载平衡,然后网关服务器将生成的数据中继到消费者(浏览器)

意味着通过使用一些负载平衡算法在 Broker 内部创建多个队列。生产者(设备客户端)——将消息的数据发送到特定队列,基于循环或其他常见的负载平衡算法传递到队列,可能还需要 Ack 来保证传递,然后消费者从中选择消息排队并进一步转发,所有这些都是非常标准的东西。

我学习了 AMQP 的基础知识,并执行了 Qpid 和 RabbitMQ 的基本示例,然后这是我的问题:

  • 有没有办法、或者一些实验或任何可以提供一些选择 RabbitMQ 或 Apache Qpid 的东西?

  • 有没有人曾经做过或多或少类似的需求?他/她可以对此提出任何评论吗?或者在实际实现算法、生产者和消费者的实现之前有一些指示?

  • 我的总体要求与负载平衡相关,因为我的项目预计有数百万台设备连接到消息服务器 - 稍后消息数据将被中继,此时主要混乱选择 Apache Qpid 或 RabbitMQ,对我来说两者看起来都是一样的

Recently I started working on a project which require to implement Messaging and viable options are : Apache Qpid or RabbitMq , My Task is like this :

+A+ >>.[Millions Devices (Producers) -- Connected to -- Messaging Server (Clustered -- Qpid or RabbitMQ) ] { LOAD BALANCING)

And then

+B+ >>.[Messaging Server (Clustered -- Qpid or RabbitMQ) -- Connected to -- GateWay Server (Clustered) ]

And then

+C+ >>.[GateWay Server (Clustered) -- Connected to -- Internet Explorers/Browsers (Consumers) ]

See +A+ >>-- I need to use messaging usually for Load Balancing , and then later Gateway Server relay the produced data to Consumers (Browsers)

Means several queues are created inside Broker, by using some Load Balancing Algorithms. Producers ( Device Client) -- Send Message's Data to a specific queue, Delivery to a queue based on either Round Robin, or with other common Load Balancing Algos, Possibly it require Ack as well for guaranteed delivery, and then Consumers Picks the Messages from Queues and relayed further, All pretty standard stuff.

I studied basics of AMQP, and executed basic examples of both Qpid and RabbitMQ and then here are my questions :

  • Is there a way , or some experiments or anything which can provide some thing to choose either RabbitMQ or Apache Qpid ?

  • Is there any one who have ever worked on more or less similar requirement ? and he/she can provide any comments about it ? or some pointers before actually Implementing the algo , Implementation of Producers and Consumers ?

  • My Overall requirement is related with Load Balancing, as my project expects millions of devices connected to Messaging server -- later Messaging data to be relayed and major confusion at this time to Select Apache Qpid or RabbitMQ, and to me both looks same

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

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

发布评论

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

评论(2

蓝色星空 2024-10-18 13:37:25

这里是一个实现高效负载均衡的解决方案在 RabbitMQ 中。

Here is a solution that achieves efficient load-balancing in RabbitMQ.

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