Spring Cloud Zuul

The Spring Cloud Gateway is the natural choice when we adopt the microservices architecture, but nowadays the Spring Cloud Gateway does not have support enabled for service discovery features, such as the Eureka server. It means we will have to configure it route by route. This does not sound good.

We have the Zuul proxy as a gateway for our microservices environment, but keep in mind the Spring Cloud Gateway is the best choice when the project has support for service discovery.

Let's create the Zuul proxy project.

Get Spring 5.0 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.