Load Balancing based on response cookie

What is the name of the domain?

example.com

What is the issue you’re encountering

Is it possible to setup load balancing based on a response cookie? We have multiple geographical sites that our edge load balancers can route to based on a cookie set in the response (e.g. SITE_NAME). DNS is currently set to Round Robin between these geographical sites, and our edge LBs will route internally to the correct location. We’re hoping to add Cloudflare in front to proxy the traffic directly to the geographical site rather than RR.

How do you expect a load balancer to decide where to route the request based on a response cookie that hasn’t been set yet? That’s like routing a phone call to a person’s office based on who picks up the phone after the call’s been routed.

Why not use Session Affinity?

If there is no session affinity cookie, how does it load balance? It’d be the same here.

I basically want session affinity, but with the session cookie set the by server (and can update from the server)

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.