concept request / response in category cloud

This is an excerpt from Manning's book Cloud Native Patterns: Designing change-tolerant software.
But before we jump deep into those topics, I need to cover one more umbrella topic—a cross-cutting concern against which all of the other cloud-native patterns will be applied: the basic invocation style used in your software architecture. Will the interaction between microservices be in a request/response or an event-driven style? With the former, a client makes a request and expects a response. Although the requestor may allow for that response to come asynchronously, the very expectation that a response will come establishes a direct dependence of one on the other. With the latter, the parties consuming events can be completely independent from those producing them. This autonomy gets to the heart of the difference between these two styles of interaction.
I’ll start with caching, a technique that has been in use for some time and remains relevant in cloud-native software architectures; remember what happened when we added a cache as part of our fallback behaviors when studying resiliency patterns? We’ll have another look at caching here. Then I’ll do a brief review of chapter 4, where we turned request/response on its head and sent events flowing through our services topology instead. I’ll enhance that event-driven design by adding an event log, and then I’ll finally introduce the concept of event sourcing. As we go through this design evolution, I’ll use an analysis of request successes and failures under different outage conditions as a measure of autonomy, and you’ll see the important role that data design plays in our cloud-native architectures.
As I suggested, we began our journey to this better way of handling local storage in chapter 4, when we turned request/response on its head, moving to an event-driven interaction protocol. Figure 12.7 looks similar to the diagrams earlier in the chapter, but with one important distinction: the interaction between Connections’ Posts and its related services is initiated from the opposite end. Connections’ Posts does have its own local storage, reminiscent of the cache from the previous example, but it’s now updated anytime one of the downstream services broadcasts a change.