Spring Cloud Gateway
The API Gateway pattern helps us to expose our microservices through a single known entrypoint. Usually, it acts as an entrypoint to external access and redirects the call to internal microservices.
There are many benefits when we adopt the API Gateway in our application. The first one can be recognized easily, it makes the API consumption easy for the clients, which means the clients do not need to know the different microservices endpoints.
Other benefits are a consequence of the first one. When we have a unique entrypoint, we can address some cross-application concerns such as filtering, authentication, throttling, and rate limit, as well.
It is an essential part when we adopt the microservices architecture.Â
The Spring Cloud Gateway enables us to have these features in a Spring-managed bean, in a Spring way using Dependency Injection and other features provided by the Spring Framework.Â
The project was built on the Spring Framework 5, which uses the Project Reactor as...