I have an application that forward TCP connection to another App. Currently I am trying to make this application Zero Download Deployment, so I can deploy new version at any time but there is a problem I don't have not found a solution in how to solve it.
I can't kill the TCP sessions, some of them can least 5 min or 2 hours. I would like to know what is the generic way to solve this problem, when deploying a new version of my software it will be taken by new connections without kill the previous ones.
I know with docker you can modify signals that the container receives and handle them, but still I see on the deployment after some point, they send a a "docker rm" command a delete the container (currently I am testing with Docker Swarm and I assume Kubernetes will do the similar).
Is that the way to go to have a very long time out for the deployment or use kind of a blue/green?
Thanks,