Service discovery

Dariusz Pawlukiewicz

24.10.2018, C_tech #7

using Consul and Fabio

What is Consul?

  • Service mesh by HashiCorp
  • Service discovery
  • Health checks
  • Key/Value store
  • Distributed locks and semaphores
  • Watches
  • Integration with other products such as Vault

How does it apply?

Service
A

Service
B

API

Register
"ServiceA"

Register
"ServiceB"

Get
"ServiceA"

Registration data

What is Fabio?

  • OSS Reverse proxy/load balancer by Ebay
  • Integrates with Consul
  • Creates routing table using Consul's service tags
  • Requires Consul health checks integration

How does it apply?

Service
A

API

Register "ServiceA"  localhost:5002
api/values, api/users

api/values : localhost:5002
api/users : localhost:5002

api/users

localhost:5002/api/users

Thanks!

Demo: bit.ly/2yw7DWS

deck

By goorion

deck

  • 34