Skip to content

bijukunjummen/sample-spring-hystrix

Repository files navigation

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:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published