Unlike the Eureka Server and the Config Server, in typical deployments, Zuul is specific to a microservice. However, there are deployments in which one API Gateway covers many microservices. In this case, we are going to add Zuul for each of our microservices--Search, Booking, Fare, and Check-In.
Perform the following steps for setting up Zuul:
- Convert the microservices one by one. Start with the Search API Gateway. Create a new Spring Starter project and select Zuul, Config Client, Actuator, and Eureka Discovery:
The project structure for the search-apigateway is shown in this screenshot:
- The next step is to integrate ...