6 ms·
Load balancer seem like one of those problems that engineers should be cutting their teeth on. And yet we have only a handful and one of the most popular charg
by hinkley 7y ago
Load balancer seem like one of those problems that engineers should be cutting their teeth on.
And yet we have only a handful and one of the most popular charges money for cool features and does not appear to have an ABI for addons.
- sciurus 7y ago> And yet we have only a handful Apache, nginx, haproxy, envoy, traefik, and probably dozens more that aren't on the top of my head.
- nkozyra 7y agoYou literally listed a handful ;)
- SteveNuts 7y agoFabio, IIS, Varnish, Kong, Squid, lighttpd, emacs (probably).
- lugg 7y agohttps://stackshare.io/stackups/emacs-vs-haproxy https://stackshare.io/stackups/emacs-vs-haproxy
- elcritch 7y agoActually Emacs as a dev proxy like Charles Proxy could be handy... ;) Also there exists an http module for emacs: https://www.emacswiki.org/emacs/HttpServer https://www.emacswiki.org/emacs/HttpServer
- AdieuToLogic 7y ago> > > And yet we have only a handful > > Apache, nginx, haproxy, envoy, traefik, and probably dozens more that aren't on the top of my head. > You literally listed a handful ;) How many solutions to a problem are needed when the problem is well-defined before there is no longer a need to grab for more?
- hombre_fatal 7y agoThere are probably thousands on Github for the use of teeth-cutting like in the blogpost. I've made one. You just lose interest when you impl the easy/naive stuff and need to actually use a real solution in production.
- hinkley 7y agoCmon. Does anybody use Apache anymore? We should send them a care package if so, poor bastards. Ingress routers are something else. They balance load for cloud traffic, but can they act just as reverse proxies, right? Linkerd and Traefik are a different tool than haproxy.
- yjftsjthsd-h 7y agoApache's httpd is perfectly good as a web server, and passable as a proxy. I can't say that it'd be my first choice, but I'm not aware that there's any special reason not to use it.
- hinkley 7y agoThe Byzantine config file syntax was a common complaint shared by the early defectors to nginx. If I never have to edit that conf file again it will be too soon.
- dankohn1 7y agoHere are the ones CNCF tracks: https://landscape.cncf.io/category=service-proxy,api-gateway,service-mesh&format=card-mode&grouping=category https://landscape.cncf.io/category=service-proxy,api-gateway...
- jrockway 7y agoThat is a really neat page. You see "funding: $250k" right next to "market cap: $1.1T". It's almost surreal.
- dankohn1 7y agoThanks. Don't miss the landscape view: https://landscape.cncf.io/ https://landscape.cncf.io/ And we've started creating them for other fields, like visual effects: https://landscape.aswf.io/ https://landscape.aswf.io/
- hinkley 7y agoOk. Three of those are forks of the others. Several of those are ingress routers, and I’ve seen no claims of those being able to run standalone (ie without specifically k8tes) so they are technically load balancer, except they can’t operate standalone. Say I wanted to run one per server instead of NodeJS cluster mode. I could not substitute those, right? One is F5 which nobody says anything nice about anymore, and was positioned as a hardware solution for most of its good years. I’d also note that a number of these are pretty young, indicating that there was a power vacuum that is now filling in.
- Rapzid 7y agoI'm thinking of a "load balancer" that charges for basic features like querying for which downstream servers are in service.. HAProxy on the other hand has been doing some really fantastic stuff lately that is in the open source. It makes me a bit sad that the former is the "go to" and HAProxy doesn't get the usage it deserves. To your specific point though I think it's just super tricky to get all the features people expect at the performance they expect as well. You essentially need to implement an very efficient HTTP server, also apparently not trivial, in order to get expected Layer 7 features.. Embedded scripting language support is quickly becoming de facto.. Simple traffic proxy/forwarding is the easy part but getting something competitive together feature and performance wise feels way beyond teeth cutting? EDIT: Using golang as an example. You would need to either piggy-back the best HTTP server available for your language platform or write your own. The stdlib Golang http server is not competitive performance wise. The reasons for this are pretty well known and seem to be largely accepted by the core team(AFAICT). This won't impact most app and service developers too much, but for an LB service the number of cycles it leaves on the table my not be acceptable at all.
- eloff 7y agoYou can use fasthttp in Go to get performance within about 10% of the best in other languages. See the latest tech empower benchmarks.
- Rapzid 7y agoYup. It's also famously incompatible with the wider ecosystem because it's not a drop in replacement for net/http. There are other criticisms I haven't really looked into as well. Not meant to be my own criticism, just an observation. I believe the net/http interface ossified its own design decisions making it hard/impossible to be compatible with?
- eloff 7y agoThe net/http interface requires too many allocations, which prevents it from running at the same speed. That's why fasthttp uses a different design.
- spyspy 7y agoImplementing a simple load balancer in Go was actually a take home interview problem for me once and I have to say I thoroughly enjoyed making it.