Home  >  Article  >  What is the difference between activemq and rabbitmq?

What is the difference between activemq and rabbitmq?

coldplay.xixi
coldplay.xixiOriginal
2020-07-02 11:40:3917257browse

The difference between activemq and rabbitmq is: 1. activemq is an old message queue, written in Java language, has the best support for JMS, and uses multi-thread concurrency; 2. rabbitmq is the leading implementation of the AMQP protocol, supporting multiple In this scenario, Taobao's MySQL cluster is used internally for communication.

What is the difference between activemq and rabbitmq?

##The difference between activemq and rabbitmq is:

1, ActiveMQ/ApolloMQ

Advantages: The old message queue is written in Java language. It has the best support for JMS, uses multi-thread concurrency, and consumes relatively large resources. If your main language is Java, you can focus on it.

Disadvantages: Due to its long history and heavy historical baggage, version updates are very slow. Cluster mode needs to rely on Zookeeper implementation. The latest architecture product is named Apollo, known as the next generation of ActiveMQ, and there are currently few cases.

2. RabbitMQ

Advantages: rich ecology, many users, and many people are stepping on the trap. The leading implementation of AMQP protocol, supporting multiple scenarios. Taobao's MySQL cluster uses it for internal communication. The communication component of the OpenStack open source cloud platform was first used in the financial industry.

Disadvantages: Can you hold Erlang code? Although Erlang is naturally clustered, RabbitMQ is not particularly good at high availability. Don't believe the ads.

Supplementary: RocketMQ/Kafka

Advantages: Designed for massive messaging, advocating the use of pull mode, natural clustering, HA, and load balancing support. The same thing is said, whether it is suitable depends on whether you have such a large amount.

Disadvantages: You can’t have your cake and eat it too, it gives up some of the flexibility of message middleware, and the usage scenarios are narrow. You need to pay attention to whether your business model is suitable, otherwise it will be awkward to use it in disguised form. In addition, RocketMQ does not have a .NET client available. RocketMQ is well-known, but it has not many users and a small ecosystem. After all, there are not many companies with such volume of messages. You can also directly purchase Alibaba Cloud’s messaging services. Kafka has a complete ecosystem. Its code is written in Scala language, and its reliability is lower than RocketMQ.

The above is the detailed content of What is the difference between activemq and rabbitmq?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to calculate BIMNext article:How to calculate BIM