In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
What message queues are there? Many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can gain something.
Message queue includes: 1. RabbitMQ, which is a reusable enterprise message system based on AMQP, is one of the most mainstream message middleware at present. 2. ActiveMQ is a [JMS Provider] implementation that fully supports JMS1.1 and J2EE1.4 specifications.
1 RabbitMQ
Released in 2007, RabbitMQ is a reusable enterprise messaging system based on AMQP (Advanced message queuing Protocol). It is one of the most mainstream message middleware at present.
Main features:
Reliability: provides a variety of technologies that allow you to trade off between performance and reliability. These technologies include persistence mechanism, delivery confirmation, publisher confirmation and high availability mechanism.
Flexible routing: messages are routed through the switch before reaching the queue. RabbitMQ provides a variety of built-in switch types for typical routing logic. If you have more complex routing requirements, you can combine these switches. You can even implement your own switch type and use it as a plug-in for RabbitMQ.
Message clustering: multiple RabbitMQ servers in the same LAN can be aggregated and used as a separate logical agent
Queue high availability: queues can be mirrored on machines in the cluster to ensure message security in the event of hardware problems
Support for multiple protocols: support for multiple message queuing protocols; server side is written in Erlang language, supporting all programming languages you can think of
Management interface: RabbitMQ has an easy-to-use user interface that allows users to monitor and manage many aspects of the message Broker
Tracking mechanism: if the message is abnormal, RabbitMQ provides a message tracking mechanism so that the consumer can find out what happened
Plug-in mechanism: many plug-ins are provided to expand from many aspects, or you can write your own plug-ins
2 ActiveMQ
ActiveMQ is produced by Apache, and ActiveMQ is a JMS Provider implementation that fully supports JMS1.1 and J2EE 1.4 specifications. It is very fast, supports multiple language clients and protocols, and can be easily embedded in the enterprise application environment, and has many advanced features.
Main features:
Comply with the JMS specification: the JMS specification provides good standards and guarantees, including synchronous or asynchronous message distribution, once and only message distribution, message reception and subscription, and so on. The advantage of complying with the JMS specification is that these basic features are available no matter what JMS implementation provider is used
Connectivity: ActiveMQ provides a wide range of connection options, supporting protocols such as HTTP/S,IP Multicast, SSL,STOMP,TCP,UDP,XMPP, and so on. Support for many protocols gives ActiveMQ a lot of flexibility.
Many kinds of protocols are supported: OpenWire, STOMP, REST, XMPP, AMQP
Persistence plug-ins and security plug-ins: ActiveMQ provides a variety of persistence options. Moreover, the security of ActiveMQ can be customized and authorized according to the needs of users.
Many kinds of client-side languages are supported: in addition to Java, there are also: C _
Agent cluster: multiple ActiveMQ agents can form a cluster to provide services
Extremely simple management: ActiveMQ is designed with the developer's mind. Therefore, it does not require a dedicated administrator because it provides simple and useful management features. There are many ways to monitor data at different levels of ActiveMQ
This includes using JMX in the Web Console of JConsole or ActiveMQ, dealing with JMX alarm messages, using command-line scripts, and even monitoring various types of logs.
3 RocketMQ
RocketMQ comes from the open source product of Ali company and is implemented in Java language. It refers to Kafka in the design and makes some improvements of its own. The message reliability is better than Kafka. RocketMQ is widely used in Alibaba Group in order, transaction, recharge, flow computing, message push, log streaming, binglog distribution and other scenarios.
It is a queue model message middleware with high performance, high reliability, high real-time and distributed characteristics.
Producer, Consumer and queues can all be distributed
Producer sends messages to some queues in turn. The queue set is called Topic,Consumer. If you do broadcast consumption, a consumer instance consumes all the queues corresponding to this Topic. If you do cluster consumption,
On average, multiple Consumer instances consume the queue set corresponding to this topic.
Can guarantee strict message order
Provide rich message pull mode
Efficient subscriber horizontal scalability
Real-time message subscription mechanism
100 million-level message accumulation capability
Less dependence
4 Kafka
Apache Kafka is a distributed message publishing and subscribing system. It was originally implemented by LinkedIn as a distributed submission logging system (a distributed commit log) based on a unique design, and later became part of the Apache project. Kafka systems are fast, scalable, and persistent. Its partition feature, replicability and fault tolerance are all good features.
Fast persistence, message persistence can be done under the system overhead of O (1).
High throughput, which can reach the throughput rate of 10W/s on an ordinary server
. Complete distributed system, Broker, Producer, Consumer all support distributed automatically and realize load balancing automatically.
Supports both synchronous and asynchronous replication of HA
Support batch sending and pulling of data
Zero-copy: reduce the IO procedure
Data migration and expansion are transparent to users
The machine can be expanded without downtime
Other features: strict message order, rich message pull model, efficient subscriber level expansion, real-time message subscription, 100 million-level message stacking ability, periodic deletion mechanism
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.