3 ms·
I talk about some of it (like push vs pull approach to server configuration, containers or not, single server or not), but most likely not to the extend you are
by strzibny 5y ago
I talk about some of it (like push vs pull approach to server configuration, containers or not, single server or not), but most likely not to the extend you are probably thinking of.
As for high availability I discuss whether it's worth it or not in the Scaling chapter. I also show how to use NGINX as a load balancer. I currently don't have HA content written for PG and Redis, but there are planned (as a free update).
- errcorrectcode 5y agoNginx, in 2021, really? Envoy stomps it. https://www.loggly.com/blog/benchmarking-5-popular-load-balancers-nginx-haproxy-envoy-traefik-and-alb https://www.loggly.com/blog/benchmarking-5-popular-load-bala... Also, what about caching, a-la at the top varnish, redis/memcache in the middle, and database tuning in the BE?
- e12e 5y agoInteresting about the total requests, but the article does not test.. balancing load? In a perfect world, 1 lb in front of 4 app servers should be able to serve 4x the requests as 1 lb in front of 1 app server. So I'd imagine 4x nginx back-end servers, and a baseline hitting 1 nginx directly? That, and the fact that the nginx config is shorter, and the performance not terrible (though terrible next to envoy in this test admittedly) - does mean nginx shouldn't be ruled out.
- pojzon 5y agoIts not, its still widely used also in kubernetes world. Tho a lot of traction is going for apps written in GO. Which supposedly makes them faster.
- errcorrectcode 5y agoLanguage religion is irrelevant except to fanatics and haters. Performance is all that matters.
- errcorrectcode 5y ago1 LB would be a SPoF. And you don't necessarily need Nginx between an app and the LB if the app speaks http/s. DSR is an option too.
- e12e 5y agoWell sure. Maybe they should've benchmarked with a fail over node. But I at least expect a benchmark of load balancers... To balance load? In this setup both the "app" and the lb are SPOFs...
- strzibny 5y agoYes, because: 1. It's popular and well understood. 2. It's included in the distribution and enjoys security fixes. 3. It's included in the distribution and shipped with good SELinux profile. 4. Since I use it to explain reverse proxy, I don't have to go into explaining new syntax (and people don't have to learn two different tools just for the sake of it). Most people will prefer the reasons above to a better performance in theory (in theory, because I doubt NGINX will be your bottleneck).
- errcorrectcode 5y agoPopularity != most suitable. Might as well advocate LAMP, Java, JS/Node, and Mongo too. It will be a bottleneck for anything real. Plus, it's old and doesn't do what Envoy does. Nginx isn't a full-featured, live-reconfigurable L7 ingress RP. It's a toy.