How to make RabbitMQ scalable?

后端 未结 2 1576
半阙折子戏
半阙折子戏 2021-01-13 12:02

I tried to test RabbitMQ, but I found that rabbitmq has some problems: if I created a cluster of 3 nodes, I can\'t publish/delivered more than 6000/s. in other hand, if I wo

相关标签:
2条回答
  • 2021-01-13 12:20

    It might depend on other factors such as your network, or your hardware performance.

    When reading benchmark always consider the environment surrounding the tests

    As on how to improve perf you can improve your hardware or network if this is the limiting factor.

    Consider switching to a SSD or using link aggregation on your network would be a good start.

    0 讨论(0)
  • 2021-01-13 12:30

    I resolved the problem by adding load balancer. The producers send data to load balancer. On the other hand the load balancer id connected to many nodes of rabbitmq, but those nodes are not connected between them (to avoid synchronization which affects the performance). So by this way, I can multiply the throughput (ex: 3 nodes= 3x throughput).

    0 讨论(0)
提交回复
热议问题