Configurations of Azure Spring Cloud Sample PetClinic

msazpro 21 Reputation points
2021-10-13T15:23:07.147+00:00

Azure Spring Cloud Sample application PetClinic below put configurations at two places

https://github.com/Azure-Samples/spring-petclinic-microservices

For example, spring-petclinic-api-gateway application has application.yml at spring-petclinic-microservices/spring-petclinic-api-gateway/src/main/resources/ which uses Spring Cloud Gateway for Routing,

but configuration server load configurations api-gateway.yml from git repository at https://github.com/Azure-Samples/spring-petclinic-microservices-config/blob/master/ which uses Netflix Zuul Gateway for Routing.

It is quite confusing. Which one actually effective?

Azure Spring Apps
Azure Spring Apps
An Azure platform as a service for running Spring Boot applications at cloud scale. Previously known as Azure Spring Cloud.
124 questions
0 comments No comments
{count} votes

Accepted answer
  1. Samara Soucy - MSFT 5,051 Reputation points
    2021-10-21T02:07:18.57+00:00

    Either one will work and it is going to depend on the preferences of the developer. There was a question about this on Stack Overflow, where the developer for Spring Cloud Gateway pointed out that Zuul will not be integrated into Spring directly, so Spring Cloud Gateway would likely be easier to work with: https://stackoverflow.com/a/47094859/11002318


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.