A gateway service is a single point of access and acts as a proxy for multiple services. The service gateway enables routing, filtering, and common processing across all services.
In the practice of micro services, there are far more than these functions, which can achieve unified access, traffic control, security protection, service isolation and other functions.
The following is an overview of the service gateway.
After looking at this diagram, you probably already understand what a service gateway can do and the many benefits of using a service gateway.
So, given all the things that a service gateway does, and the fact that it’s a mandatory part of a microservice suite today, why not use a service gateway?
The following figure shows a suite of service gateways using Spring Cloud.
Spring Cloud uses Zuul as the Service gateway component. In the figure, Open Service is the Service gateway. Service A and B are the actual internal Service.
Other constructive suggestions or ideas for the service gateway can be left in the wechat public account “Java Technology Stack” below the message, together with more research and discussion of micro services practice.
Recommended reading
Dry goods: Free 2TB architect four-stage video tutorial
Interview: the most complete Java multithreaded interview questions and answers
Tools: Recommended an online creation flow chart, mind mapping software
Share Java dry goods, high concurrency programming, hot technology tutorials, microservices and distributed technology, architecture design, blockchain technology, artificial intelligence, big data, Java interview questions, and cutting-edge hot news.