Advantages & Variations
Understand the advantages of asynchronous microservices such as enhanced system resilience, guaranteed message processing, and strong decoupling via events. Discover different implementation variations, including the use of Apache Kafka for long-term message storage and REST with Atom for simpler setups. Learn why combining asynchronous with synchronous communication is generally avoided but may be needed in specific cases requiring immediate responses.
We'll cover the following...
Advantages #
Decoupling via events was presented in the lesson on Events. Such an architecture achieves a high degree of decoupling.
Especially for distributed systems, asynchronous communication has a number of decisive advantages:
-
When a communication partner fails, the message is sent later when the communication partner is available again. In this manner, asynchronous communication offers resilience, that is, protection against the failure of parts of the system.
-
The ...