Lets say I have a website with 4 webapp server and 1 HAProxy before them to do load balancing. Now I want to update my webapp with new api/v2 and I start the rolling update. My webapp is doing HATEOAS so lets assume that 1 instance got updated and it sent a link like api/v2/dothis to a clinet. Now the client made a request on this link and HAProxy directed it to 3rd server in the cluster which is still running the old webapp and doesn't know about api/v2. How do people solve this problem in general, how do websites do rolling updates without disrupting the service.
Thanks in advance
You could use one of these options
I feel that option a would be best, since you would not have to maintain another server/system for brokerage.