Message Oriented Middleware
1、 What is message oriented middleware
Message oriented middleware is the basic software for sending and receiving messages in distributed systems.
2、 The role of Message Oriented Middleware
Through message middleware, reliable asynchronous communication can be carried out between applications or components, so as to reduce the coupling between systems and improve the scalability and availability of the system.
@H_ 404_ 18@
3、 JMS (Java Message Service: a message specification in Java EE, which is a set of platform independent API) message model
1. Point to point or queue model
The characteristics of JMS point-to-point queue model: (1) the message producer sends the message to the queue, and then the message consumer takes out and consumes the message from the queue. (2) After the message is consumed, there is no storage in the queue, so it is impossible for the message consumer to consume the consumed message. (3) . queue supports multiple consumers, but only one consumer can consume a message.
2. Publisher / subscriber model
Features of JMS publish / subscribe model: (1) the message producer (publish) publishes the message to topic, and multiple message consumers (subscribe) consume the message. (2) the message published to topic will be consumed by all subscribers.