Summary
In this chapter, we learned about the challenges around logging and monitoring when dealing with internet-scale microservices.
We explored the various solutions for centralized logging and also learned how to implement a custom centralized logging using Elasticsearch, Logstash, and Kibana (ELK). In order to understand distributed tracing, we upgraded the BrownField microservices using the Spring Cloud Sleuth.
In the second half of this chapter, we went deeper into the capabilities required for microservices monitoring solutions and different approaches for monitoring. Subsequently, we examined a number of tools available for microservices monitoring.
The BrownField microservices were further enhanced with the Spring Cloud Hystrix and Turbine for monitoring latencies and failures in inter-service communications. The examples also demonstrated how to use the Circuit Breaker pattern to fall back to another service in case of failures.
Finally, we also touched upon the importance of Data...