News for hackers. Stuff that matters.
Re:I've been merging microservices back into the monolith by gizzlon on Monday December 21, 2020 @04:42PM (#25499951)
Not parent, but how about a load ballancer and VM's? =) Or, if you have 1 machine I believe you can do things in Linux / BSD to start a new binary without killing ongoing connections to the old process.

Edit: Oh, or you know, just don't? Maybe no-one will notice 5 secs of downtime :P depends ..

Re:I've been merging microservices back into the monolith by spockz on Tuesday December 22, 2020 @03:48AM (#25504290)
You can use SO_REUSEADDR and SO_REUSEPORT to bind multiple instances to the same port. This means you will be using the Linux network stack as load balancer though.
Re:I've been merging microservices back into the monolith by antoinealb on Tuesday December 22, 2020 @07:49AM (#25505730)
Even if you have only 1 machine, you could deploy a reverse proxy in front of it (think nginx, haproxy and co). Then you can start your application on two different endpoints, and instruct your load balancer to go from one to the other. Nginx supports live reloading of configuration, I think that should work.