Skip to content

soudmaijer/spring-boot-netflix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Cloud Netflix OSS demo application

This sample application show how to use the Netflix OSS components in a Spring Boot application. The application consists of 3 parts:

  • eureka-server
  • giftcard-service
  • checkout-service

The demo application support a few different MediaTypes. The interfaces (CheckoutService and GiftCardService) use the Protobuf message format to exchange data:

  • application/json
  • application/xml
  • application/x-protobuf

To be able to build the application make sure the protoc compiler is on your system path (protoc version 2.4.1).

eureka-server

giftcard-service

Dummy service that returns a GiftCard in the response. The service self registers with eureka.

URL: http://localhost:7777/giftcard/1.json

checkout-service

This is where it all comes together. This service calls the GiftCard service and sends an aggregated response back to the caller. The service implements the circuit breaker pattern using Hystrix.

Integration with the GiftCard service is implemented using the Feign REST client builder. Ribbon is transparently used to loadbalance over (multiple) clients.

Implemented Netflix OSS components in this service:

  • Eureka Client
  • Hystrix
  • Ribbon
  • Feign

URL: http://localhost:8888/checkout/1.json

About

spring-boot netflix integration example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published