Recently, I have read Martin Fowler's enterprise integration pattern and learned a lot about message system-based application integration. Although the previous work involves ibm mq, the experience is not very deep. In the integration of different applications and distributed environments, message-oriented middleware has advantages in reliability. This is exactly the opposite of my first impression. I used to think that the message would always be like a letter. Maybe it would sink into the sea? Which of the following synchronous methods can be used, such as making a phone call? Think twice, but it is not. The synchronization mode relies too much on distributed applications, the communication parties are online at the same time, the network is reliable, and load is secure (do not press too many requests. In these aspects, message-oriented middleware is advantageous. Message-oriented middleware decouples message producers and consumers. The system that sends and receives messages only needs to deal with message middleware.
I remember that I had implemented a message system in a previous project. In j2se, multiple applications communicate through messages. It is mainly implemented through the RMI and observer modes. In retrospect, is it a distributed messaging system? The difference is that the sender and receiver are coupled. For example, the sender (subject) maintains a listener list (RMI callback Interface) of the receiver, and calls back the list and RMI interfaces when sending messages.
When I think back to my previous experiences, a manager talked to me about SOA and kept challenge. What are the benefits of the SOA framework in my project. He means that JSP is used in the current project, and Servlet layers are used very well. Then I will talk about this problem from the perspective of loosely coupling and reuse. The SOA framework decouples service integration (through ESB ). Just as spring encapsulates the creation and maintenance of objects, we can eliminate them on our own.ProgramUsing factory and Singleton to create objects, the framework helps us do this part.