Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.mvn/wrapper Upgrades to Spring Boot 2, Spring Cloud GW Apr 13, 2019
sample-hystrix-aggregate
sample-hystrix-config Removes spotify docker plugin and uses jib instead Apr 13, 2019
sample-hystrix-eureka Removes spotify docker plugin and uses jib instead Apr 13, 2019
sample-hystrix-gateway Removes spotify docker plugin and uses jib instead Apr 13, 2019
sample-hystrix-monitor
sample-hystrix-service
sample-load-test Cleaned up samples and readme Jan 17, 2016
.gitignore Hystrix demo using Spring-Cloud Nov 22, 2015
README.adoc Cleaned up samples and readme Jan 17, 2016
docker-compose.yml
mvnw Upgrades to Spring Boot 2, Spring Cloud GW Apr 13, 2019
mvnw.cmd
pom.xml Upgrades to Spring Boot 2, Spring Cloud GW Apr 13, 2019

README.adoc

Up and running with Sample Spring-Cloud based Hystrix demo app

There are two ways to run the entire application:

  • On Local Machine

  • Using Docker

On Local Machine

Running it all local is simple, do the following in sequence, in four different terminal windows:

Start up Eureka
cd sample-hystrix-eureka
mvn spring-boot:run
Start up Config server
cd sample-hystrix-config
mvn spring-boot:run
Start up Sample Service
cd sample-hystrix-service
mvn spring-boot:run
Start up Aggregate Application
cd sample-hystrix-aggregate
mvn spring-boot:run
Start up Gateway Application
cd sample-hystrix-gateway
mvn spring-boot:run
Start up Monitoring Application
cd sample-hystrix-monitor
mvn spring-boot:run

If all the applications have come up cleanly, the following endpoints are available:

On Docker

Running using Docker is even simpler, assuming that docker-compose and docker are installed on your box, just run the following:

Build the docker images for the microservices
mvn clean package docker:build
Start up Docker containers
docker-compose up

If all the applications have come up cleanly, the following endpoints are available:

You can’t perform that action at this time.