This article is SpringCloud combat (5) – Routing Gateway (ZUul), to pay attention to the above, please click on the portal:

SpringCloud Combat (4) – Circuit Breaker (Hystrix)

Earlier we introduced the Hystrix circuit breaker. In normal work, we sometimes want to add a layer of firewall between the client and the server, so that the client can access the server only after the firewall detects that the access is secure, otherwise the request will be called back. SpringCloud provides a routing gateway (Zuul) for this firewall. We can deploy Zuul on the Internet and put other business codes on the Intranet without exposing interfaces to the outside. If clients want to request Intranet resources, they must access zuul. Zuul can verify, block, and filter requests to ensure the security of business services.

I. Introduction to Zuul

In microservice architecture, several basic service governance components are needed, including service registration and discovery, service consumption, load balancing, circuit breakers, intelligent routing, configuration management, etc. These basic components cooperate with each other to form a simple microservice system. A simple microservice system is shown below: