Microservices applications are composed of many services, each with a unique host and port. Rather than directly exposing each service to an application client, it is usually preferable to provide a single endpoint service that performs client service queries and handles service request and response proxying. In this article, we will build the API Gateway Service. It leverages the Spring Cloud Gateway project to support declarative routing, service query, and load balancing.
Tag: api gateway
When building microservices applications, it is not practical to expose individual services directly to the application client. Instead, it is often advisable to introduce a mediator between the client application and its desired services. In this article, we present the "API Gateway" pattern.