Chapter 9: Distributed Logging, Tracing, and Monitoring
A microservice application often runs multiple microservices on a varied range of multiple hosts. For upstream consumers, the API gateway provides a one-stop-shop interface to access all the application endpoints. Any request to the API gateway is dispersed to one or more microservices. This distributed diffusion of request handling escalates challenges in maintaining microservices-based applications. If any anomaly or error occurs, it is hard to dig which microservice or distributed component is at fault. In addition, any effective microservices implementation must handle the maintenance challenges proactively.
In this chapter, we will explore the following topics:
- Distributed logging: How we can implement the log aggregation for distributed microservices so that application logs can be accessed and indexed in one place?
- Distributed tracing: How we can trace the execution of a user request that could be dispersed...