SERVICE DISCOVERY WITH CONSUL

The assignments and help for getting started is found at:

https://github.com/bekkopen/service-discovery-workshop

We have USB sticks with everything you need

Without service discovery

Each application must be configured with knowledge about integration points at deployment time

Adding an instance entails updating configuration manually

But why?

More scalability

Client-side service discovery

Client retrieves service addresses from consul

Server-side service discovery

Client knows nothing about consul, but talks through a load-balancer that is updated by consul

Consul architecture

  • Master nodes
  • Client nodes, typically one for each machine

consul-template

  1. Listens for changes in consul
  2. Updates some configuration file
  3. Then runs some command

Handy when integrating with software that doesn't talk to consul out of the box

Getting addresses and ports

  • HTTP
  • DNS

The assignments and help for getting started is found at:

https://github.com/bekkopen/service-discovery-workshop

We have USB sticks with everything you need