docker-archive / dockercloud-haproxy

HAproxy image that autoreconfigures itself when used in Docker Cloud
https://cloud.docker.com/
651 stars 187 forks source link

[QUESTION] Does this haproxy image defeats the purpose of a service registry? #223

Closed odarbelaeze closed 6 years ago

odarbelaeze commented 6 years ago

I'm trying to get more into micro-service architecture, discovering and using this image has made my life easier, the virtual host setup makes it super easy to have any amount of services running under this load balancer's rule. However I was watching this video from pycon this year where they split a toy flask application into micro-services, the presenter makes it clear that besides the load balancer one needs a service registry to feed the load balancer. However with haproxy the load balancer is feed out of docker itself, so:

LoungeFlyZ commented 6 years ago

In docker clouds case it is the service registry. You define your services etc.. in your stacks etc... and haproxy feeds of that configuration. At least thats the way I view it :)

odarbelaeze commented 6 years ago

Thanks @LoungeFlyZ