Pattern scalability
The asynchronous messaging design pattern enables scalability across all axes of the scalability cube. Scalability can happen with more instances, more powerful machines for running processes, scaling the distribution of data, and there are still many other ways. However, the asynchronous messaging design pattern has something that no other microservice communication pattern possesses—the ability to perform a lazy process.
A lazy process in microservices can be created whenever we use the asynchronous communication model between microservices. Because of the working character of a lazy process, the number of instances of a lazy microservice typically uses fewer instances than sequential working microservices.
Let's better understand scalability models for the asynchronous messaging design pattern based on the scalability cube:
- The y-axis is the first choice when using the asynchronous messaging design pattern, but processes are slow even for lazy processes, or when processes...