Introduction to Spring Cloud Basic Practical Combat (5) Routing Gateway-Zuul

Gateway In the
microservice architecture, there will be multiple services, each of which has a different address. When a user requests a service, they may perform multiple requests. At this time, our gateway is required to forward it. The gateway is located in the middle layer after the request is initiated and before the service is accessed. All visits need to go through the gateway. For example, when the user accesses the api, the request link is /login, then it is forwarded to the login service, and the request link is /shop , Then forward it to the shop service.

Zuul
zuul is an API Gateway server open sourced by netflix, which is essentially a web servlet application. Zuul’s main function is routing and filtering.

Zuul provides a framework for dynamic routing, monitoring, resiliency, security and other edge services on the cloud platform. Comparing the entire project to a big house, Zuul is equivalent to the doorman for all requests on the back end of the web site of the device and Netflix streaming application, and it guides the requests into the room they require.
 

Guess you like

Origin blog.csdn.net/qq_30764991/article/details/100549683