Highlighted

cfhttp and load balancer issue

New Here ,
Jan 17, 2018

Copy link to clipboard

Copied

Hi Folks,

Our Cf servers live behind a load balancer.  We have an app that makes a cfhttp call to an outside web server.  The problem occurs when the data returned comes back through the load balancer and doesn't always return back to the originating server.  Is there a way to ensure that the returned data returns to the correct server?

Views

77

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

cfhttp and load balancer issue

New Here ,
Jan 17, 2018

Copy link to clipboard

Copied

Hi Folks,

Our Cf servers live behind a load balancer.  We have an app that makes a cfhttp call to an outside web server.  The problem occurs when the data returned comes back through the load balancer and doesn't always return back to the originating server.  Is there a way to ensure that the returned data returns to the correct server?

Views

78

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jan 17, 2018 0
Adobe Community Professional ,
Jan 17, 2018

Copy link to clipboard

Copied

That's kind of odd, because by default, load balancers don't have anything to do with outbound traffic. If your app makes a CFHTTP call to an external server, it should be using its own IP address and not that of the load balancer, and the CFHTTP response should go to that IP address.

That said, you could work this out by having your server attach some sort of token, and have your load balancer use that token to figure out which server should receive the response. That's basically how "sticky sessions" work in load balancing. Without knowing more about what's going on, my response is going to be a bit vague here, but that's the approach I'd look at.

Dave Watts, CTO, Fig Leaf Software

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 17, 2018 0