Achieving reliability through automation
In this section, we will talk about various automation techniques that can help you improve the reliability of your services.
First, let’s get back to communication error handling, which we briefly covered earlier in Chapter 5. Having the right communication error-handling logic in place is the first step toward achieving higher reliability of your services, so we will focus on multiple aspects of error handling that are equally important in microservice development.
Communication error handling
As we discussed in Chapter 5 of this book, when two components—such as a client and a server—communicate with each other, there are three possible resulting scenarios:
- Successful response: The server receives and successfully processes a request.
- Client error: An error occurs, and it is not caused by the server (for example, the client sends an invalid request).
- Server error: An error occurs, and it is caused...