Sunday, April 15, 2018

Service Discovery for Micro Services


Service Registeries Providers


  • Apache Zookeeper
  • Consul
  • Etcd


Service Discovery with Spring Boot 

Consul Provides support for
-Service discovery
-Health Checking
-K/V storage
-Multiple Data Centres

How to enable in Spring boot app

Add @EnableServiceDiscoveryClient to the service searchable


@RefreshScope
Allow properties automatically reloaded //can be used by both consumable and caller services

Add

Springboot  Bootstrap.yml for consul

application name:
name:consumable-service
Server:
port:


Now the consumable service can be invoked with /consumable-service and does not required host name and Port
Properties can be