Skip to content

A QuartersBack meetup demo showing how to use Hashicorp consul as a Service Discovery Registery

Notifications You must be signed in to change notification settings

abderrazak-bouadma/microservices-consul-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

qb-20170502

Quarters Back May 2nd 2017 Demo

This demos shows how to self register a spring-boot application into Hashicorp Consul

How to

  1. First, download the HashiCorp Consul
  2. run consul on your machine $ consul agent -dev
  3. clone this repository
  4. build all modules
  5. run all modules mvn spring-boot:run
  6. visit consul UI

you'll see aggregation-service, product-service and stock-service registred on consul

  1. stop the product-service [CTRL][C]
  2. into the product project, run 2 instances of the service using ./run1.sh and ./run2.sh
  3. back to consul UI
  4. click on product-service you'll notice 2 instance appearing under the same service name
  5. curl https://localhost:52000/client/products returns list of products with their stock consuming 2 services

About

A QuartersBack meetup demo showing how to use Hashicorp consul as a Service Discovery Registery

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published