Distributed messaging middleware
I believe that everyone has used message middleware to exchange data between systems in actual work to solve the problems of application decoupling, asynchronous messaging, traffic peaking, etc. Therefore, the powerful functions of message middleware must not need me to say more! At present, there are dozens of implementations of message middleware in the industry, which can be described as a hundred flowers blooming, and the implementation languages used are also diverse. Regardless of which messaging middleware is used, our goal is to achieve a high-performance, highly available, scalable and eventually consistent architecture.
Talk about interview
If the interviewer sees that you have written MQ middleware experience in your resume, you may be asked the following questions:
- 1. What message middleware does your company use in the production environment?
- 2. Why do we need to introduce message middleware into the system?
- 3.What are the advantages and disadvantages of introducing message middleware?
After you see it, do you not have a system concept in your mind? Don't panic, today we will borrow a document that I got from a friend of Ali some time ago to open the door of distributed messaging middleware with everyone!
Due to space limitations, it is impossible to display all the contents of the document. If you need the help of a friend, you can add the assistant vx:bjmsb2019 or vx:1249448307! ! Let's look at the main content of the document!
Let's take a look at the catalog first
The first part of the message queue
Introduce the background of message queuing technology, including usage scenarios and features of message queuing, and design a simple message queuing.
- Features of message queue
- Design a simple message queue
The second part of the message protocol
Introduce the commonly used message protocols in message queues, including the historical background, main concepts and message communication processes based on the protocol for each message protocol. The protocol introduced in this chapter is also the basis for understanding various messaging middleware products.
- AMQP
- STOMP
The third part RabbitMQ
Specifically introduce the characteristics, main concepts and Java usage examples of RabbitMQ, and then implement asynchronous processing and message push functions by using RabbitMQ
- The concept of RabbitMQ
- Spring integrates MQ
- RabbitMQ practice recommendations
The fourth part ActiveMQ
Introduce the features, basic concepts and Java usage examples of ActiveMQ in detail, and then implement the function of message push distributed transaction by using ActiveMQ
- ActiveMQ features
- Java access to ActiveMQ instance
- Message push based on ActiveMQ
- Distributed transaction based on ActiveMQ
Part 5 Kafka
Introduce Kafka's characteristics, main concepts and Java usage examples in detail, and then use Kafka to realize user behavior data collection, log collection, and traffic peak reduction functions
- Java access to Kafka instance
- Spring integrates Kafka
- User behavior data collection based on Kafka
- Kafka practice recommendations
Part VI RocketMQ
Specifically introduce the characteristics, main concepts and Java usage examples of RocketMQ, and then use the characteristics of RocketMQ to achieve another solution for message sequential processing and distributed transactions
- Basic concepts of RocketMQ
- Project example
- Message sequence processing based on RocketMQ
- Distributed transaction based on RocketMQ
- RocketMQ practice recommendations
- Cluster
In order not to affect everyone's reading experience, the article is already very long here, so I just show it.
Write at the end
I believe you all know the importance of mastering message middleware. I hope that after reading this document, you can combine the scenes and choose middleware that meets your needs in terms of high availability, scalability, scalability, and message accumulation capabilities. Friends who need help with one-click triple connection, add the assistant vx:bjmsb2019 or vx:1249448307!