4 ms·
For a book on deployment, I feel there is too much content on setting up a server. Would have like to see pros and cons of differing ways to deploy. Also, for
by turtlebits 5y ago
For a book on deployment, I feel there is too much content on setting up a server. Would have like to see pros and cons of differing ways to deploy.
Also, for taking apps to production, there should definitely be a part on high availability.
- strzibny 5y agoI 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.
- errcorrectcode 5y agoWithout addressing deployment canaries, exponential deployments, exponential rollbacks, traffic steering, API load duplication to staging, IaaS/PaaS, 12factor apps, HA, scaling, fault injection, hot backups, cold (and tested) backups, DR/BCP, configuration management, CI/CD, monitoring, troubleshooting the entire stack, and SLAs, it doesn't seem to me like a professional-enough treatment to celebrate.
- andkon 5y agoAlso it would be nice if this book could do all the deploying for me.
- padthai 5y agoI have not read all the book yet, but it definitely talks about some of these things (12factor app, canaries, scaling, logging, etc.). It is a review of the most fundamental tools and strategies in Red Hat flavored Linux distros. Things like troubleshooting the entire stack would be far too advanced and specific.
- tomcam 5y agoDo you have an up-to-date reference that handles all those concerns in one place?
- tkiolp4 5y agoI got the impression that the book is oriented to solo entrepreneurs building their own Saas (perhaps I got that wrong). What you have described sure sounds like good standards to follow by an entire infrastructure team, but a bit too much for solo devs doing infra stuff.
- chrisweekly 5y agoI dunno, I kinda side w the parent you replied to; it's not like 12-factor app principles or CICD are only for big teams.
- strzibny 5y ago