4 ms·
This is great. Thanks, Willy! I've used HAProxy on and off throughout a lot of my career. I'm currently using it at my company as a way for services to talk to
by orthecreedence 10y ago
This is great. Thanks, Willy!
I've used HAProxy on and off throughout a lot of my career. I'm currently using it at my company as a way for services to talk to each other without specifically knowing who is where. I wouldn't call it "microservices" but probably similar: each server has HAProxy on it, and Ansible creates the HAProxy config/hosts file so that, say, a worker server can grab http://lb-api:6666/some/resource http://lb-api:6666/some/resource. lb-api is a host that routes to 127.0.0.1 and HAProxy runs on port 6666 locally, parses the "lb-api" host, and routes the request to one of the servers in the "api" group. Any time we change any servers, we just run our haproxy playbook and everything just flows.
As always, HAProxy is one of the few pieces of our infrastructure that "just works" day after day.
- toomuchtodo 10y agoAirbnb released a tool called Synapse that'll do most of this service discovery and config rendering for you.
- jolynch 10y agoDisclaimer: I help maintain Synapse. I highly recommend this tool. Yelp has used it in production for years to manage a fairly large PaaS (hundreds of services, thousands of containers, constant churn); it's proven quite flexible and resilient. Synapse is available on github [0], and we've open sourced our automation used to create a highly available service router using Synapse as well [1][2]. [0] https://github.com/airbnb/synapse https://github.com/airbnb/synapse [1] https://github.com/Yelp/synapse-tools/tree/master/src/synapse_tools https://github.com/Yelp/synapse-tools/tree/master/src/synaps... [2] http://paasta.readthedocs.io/en/latest/yelpsoa_configs.html#smartstack-yaml http://paasta.readthedocs.io/en/latest/yelpsoa_configs.html#...
- throwthrowisit 10y agoNo offense, although my comment is offensive, sorry, and I understand if you do not or cannot respond, but I have to ask. Yelp gets so much negative publicity about their "extortion" and "evil" business practices, failed sales calls followed by negative comments bubbling up for example. What are the thoughts to work for such a company?
- toomuchtodo 10y agoReally appreciate not only the work put into Synapse, but also the release and maintenance of it. Its been very helpful for projects where I've used it.