Skip to content

Simple example of a Spring Cloud / Spring Boot app using Netflix Eureka discovery service

Notifications You must be signed in to change notification settings

kevinhooke/SpringCloudEurekaSimpleExample

Repository files navigation

SpringCloudEurekaSimpleExample

Simple example of a Spring Cloud / Spring Boot app using Netflix Eureka discovery service.

Example consists of 3 Spring Boot apps:

  • SpringCloudEureka: registers the Eureka server

  • SpringBootService1 with endpoint POST /service1/example1/address

    • registers with Eureka server with @EnableDiscoveryClient
    • uses Ribbon load balancer aware RestTemplate to call Service2 to validate a zipcode
  • SpringBootService2 provides endpoint GET /service2/zip/{zipcode} which is called by Service1

    • also registers with Eureka server with @EnableDiscoveryClient so it can be looked up by Service1

About

Simple example of a Spring Cloud / Spring Boot app using Netflix Eureka discovery service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published