• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfhttp and load balancer issue

Explorer ,
Jan 17, 2018 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

147

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
community guidelines
Community Expert ,
Jan 17, 2018 Jan 17, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines
Resources
Documentation