concept pattern in category cloud

appears as: patterns, patterns, pattern, The pattern
Cloud Native Patterns: Designing change-tolerant software

This is an excerpt from Manning's book Cloud Native Patterns: Designing change-tolerant software.

I’m certain it doesn’t surprise you to hear that not all software should be cloud-native. As you learn the patterns, you’ll see that some of the new approaches require effort that otherwise might not be necessary. If a dependent service is always at a known location that never changes, you won’t need to implement a service discovery protocol. And some approaches create new problems, even as they bring significant value; debugging program flow through a bunch of distributed components can be hard. Three of the most common reasons for not going cloud-native in your software architecture are described next.

This summary is interesting indeed. Implementing patterns focused on resilience of interactions makes a big difference in the overall health of your software. Although, clearly, patterns are applicable both on the client and on the server side of an interaction, you often won’t be responsible for implementations on both sides. Therefore, particularly if you’re implementing a consumer, it’s crucial that you fully understand the contract for the API—whether the service you’re consuming will alter results when execution deviates from the “happy path.” And when you’re providing a service, make sure to fully specify that contract.

This chapter and the preceding one have focused on the two sides of an interaction between services. Because the interaction crosses processes and sometimes even network boundaries, a variety of patterns are necessary to provide a robust software implementation that’s tolerant to the inevitable changes in these distributed, cloud-based deployments. I’ve covered two of the key ones, retries on the client side and circuit breakers on the service side, the latter generalizing to a gateway pattern. Most notably, the service mesh has emerged as an essential part of the platform for running cloud-native applications. I strongly encourage you to use this technology.