Quarters Back May 2nd 2017 Demo
This demos shows how to self register a spring-boot application into Hashicorp Consul
- First, download the HashiCorp Consul
- run consul on your machine
$ consul agent -dev
- clone this repository
- build all modules
- run all modules
mvn spring-boot:run
- visit consul UI
you'll see aggregation-service, product-service and stock-service registred on consul
- stop the product-service [CTRL][C]
- into the product project, run 2 instances of the service using
./run1.sh
and./run2.sh
- back to consul UI
- click on
product-service
you'll notice 2 instance appearing under the same service name curl https://localhost:52000/client/products
returns list of products with their stock consuming 2 services