News for hackers. Stuff that matters.
Re:HAProxy 2.4 by kureikain on Sunday May 23, 2021 @12:23AM (#27252449)
They have very nice features that provider's load balancing might not offer you.

First to me is the ability to retain the IP address. When using AWS Load Balancer, the LB scale automatically and replace the IP.

Second is sophisiciated routing. Example route by cookie. What it buy is that by setting a cookie you can make sure the request hit a specific pool. You can also have concept of backup

Third is lots of useful metrics with their stats page.

Fourth is the ability to alter the responses such as removing header. You have to pair with lambda edge for these on AWS. What it helps is imagine you can write back the user_id to HAProxy, HAProxy log it together with the request, and delete it(so client won't see it). It helps to easily tail the log for a specific user.

And a lot of rate limiting built-in features that just take a few lines of config.

Re:HAProxy 2.4 by ncsurfus on Sunday May 23, 2021 @12:30AM (#27252474)
Small note - AWS Network Load Balancers maintain the same IP addresses.
Re:HAProxy 2.4 by vladvasiliu on Sunday May 23, 2021 @10:25AM (#27255201)
That's true, but functionality-wise, they can do much fewer things.

With an application load balancer, you can set up multiple backends, do basic redirections, do OIDC authentication, etc.

With a network load balancer, you can only spread TCP and / or UDP connections.

Re:HAProxy 2.4 by harpratap on Sunday May 23, 2021 @04:41AM (#27253372)
Yeah I was confused too. Why on earth will someone provide a load balancer if it keeps changing it's IP address as it scales?
Re:HAProxy 2.4 by saurik on Sunday May 23, 2021 @05:05AM (#27253485)
The normal AWS load balancers are set up to stay in service as long as the cache time on their IP address having been served by DNS... (which, FWIW, I have long argued "isn't sufficient", as many ISPs in countries half a world away from the US or using tech like satellites don't honor DNS cache times and then your requests end up getting routed to someone else... I routinely got tons of HTTP requests clearly destined for someone else's product).
Re:HAProxy 2.4 by ris on Sunday May 23, 2021 @09:03AM (#27254736)
Because they're intended to be referenced via hostname, and yes, regular HTTP AWS load balancers do indeed rotate their IPs.