chapter five
5 Engaging throttling, monitoring, and access control
This chapter covers
- How throttling works and why we need to apply throttling to our microservices
- Different dimensions of throttling and their impact
- Setting up Zuul as an API gateway for throttling
- An introduction to observability and its importance in a microservices deployment
- Using Prometheus and Grafana to monitor our microservices
- Applying access control policies via Zuul and Open Policy Agent (OPA)
In chapter 3 we introduced the API Gateway architectural pattern and discussed its applicability in a microservices deployment. Zuul is an open source API gateway developed by Netflix to front all it’s microservices. Zuul provides dynamic routing, monitoring, resiliency, security and more. It acts as the front door to Netflix’s server infrastructure, handling traffic from Netflix users around the globe. In chapter 3 we discussed how to enforce security based on OAuth 2.0 for your microservices using Zuul as the API gateway. In this chapter we extend those samples to use Zuul to handle throttling, apply access control policies and we also discuss the monitoring aspects in a microservices deployment.