RABBITMQ and Gearman are all doing Message Queuing, then what is the difference between the two, or the advantages and disadvantages of the comparison between each?
Reply content:
Gearman is a distributed task distribution system that focuses on job
RABBITMQ is a distributed message queue, weighing on message/data
Gearman to implement the message's priority, order, filter, persistence. are more cumbersome (or not straightforward), and these are typical MQ systems to consider. As the upstairs reply, Gearman emphasis on task distribution (there are scheduling), the basic mode of operation is the Client (multiple) to the server to register some functions, of course, after the server accepted the task, distributed to these functions.
RabbitMQ is the implementation of a lot of message models, such as simple producer consumers, publish subscriptions, broadcast, and even can simulate RPC, and so on, Gearman the function of a simple producer consumer model can be achieved, but the idea of a slightly change, need to consume information to achieve, The official also has similar reference example: RABBITMQ-RABBITMQ tutorial-work queues
It is recommended to take a look at RabbitMQ official This example
tutorial rabbitmq-getting started with RabbitMQ, which contains examples of several models, it is easy to combine our reality scene.
As for advantages and disadvantages, the beholder.
About three years ago, I gave an industry more well-known companies to optimize the Gearman to RabbitMQ scheme, peak hour message volume at x more than tens of millions, optimization before Gearman Server load heavier, including the Client (Worker) will often hang out, Many messages will be lost, and then migrated to RabbitMQ above, the Server only one (backup a basic never used), the Client using ACK confirmation message successfully consumed, then did not then ... Here the story is not described.
It is recommended to use RabbitMQ, not just as a message model, but also to improve system architecture design.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.