Load Testing Message-Oriented Middleware (MOM) via JMS
A Bit of Theory
As architectures become more and more distributed (via microservices, the cloud, and so on), it is common to use a Message-Oriented Middleware (MOM) service to allow the exchange of messages/events.
Such architectures have numerous advantages. We'll look at some of them in this lesson.
Asynchronous Messages
The first advantage of an MOM service is the ability to use asynchronous messages.
In a synchronous system, the sender (that is, the producer) of the message must wait for the response before continuing:
Figure 10.1: Synchronous architecture
In an asynchronous system, however, the producer of the message can continue their processing after sending the message without waiting for a response from the receiver:
Figure 10.2: Asynchronous architecture
In asynchronous mode, the MOM will act as an intermediary and store the message until it is delivered...