News for hackers. Stuff that matters.
Re:Ask HN: How to do rolling deployments without Kubernetes? by viraptor on Sunday June 19, 2022 @04:17PM (#31803024)
You can do this with (or without) any proxy too. Iptables (due to conntrack) can make decisions about the first packet in a connection, then save the result. That means you can match incoming traffic on --state NEW and route to a specific local port. Changing one iptables entry is atomic, so you can swap the version seamlessly this way.

I think the idea is worth mentioning because people often think it's hard to achieve / something special. But there's a hundred ways to do seamless version swap on a host.

Re:Ask HN: How to do rolling deployments without Kubernetes? by capableweb on Sunday June 19, 2022 @04:38PM (#31803250)
Wow, that's a good point. Obvious in hindsight, but personally I never considered iptables for that job. Thanks for sharing this!