> I have an API running on my server where I can receive an average ping > response to the host server of 1ms yet > when I make a CFHTTP request to the host server it takes anywhere from > 300-500ms to return a response. > > Anyone have any ideas what might be causing this latency, and how I could > decrease it?
Do you control the API service? If so, it's like any other web program, and you can optimize it the same way you would any other web program - look for unnecessary work done at runtime, etc. If you don't control the API service, there isn't a lot you can do. There might be a problem with your machine's network connection. You could try making the request from another machine on a different network and see what happens. You don't need to use CFHTTP to test this kind of thing - you can use any HTTP client, including wget etc. And, as Russ mentioned, ping and HTTP times aren't connected in any useful way. Dave Watts, CTO, Fig Leaf Software 1-202-527-9569 http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357680 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm