Implementing resiliency with caching and message brokers
We will be diving into how we can make our services resilient using retry policies and the circuit breaker pattern, but we are not limited to these methods in our microservices architecture. We can help to support service resiliency using caching and message broker mechanisms. Adding a caching layer allows us to create a temporary intermediary data store, which becomes useful when we are attempting to retrieve data from a service that is offline at the moment. Our message brokers help to ensure that messages will get delivered, which is mostly useful for write operations.
Let us discuss message brokers and how they help us with our resiliency.
Using a message broker
Message brokers have a higher guarantee of data delivery, which increases resiliency. This is built on the foundation that the message broker will not be unavailable for an extended period, but once a message is placed on the message bus, it will not matter...