Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Optimise CFHTTP Requests/Requests Being Throttled?

$
0
0

I currently have an application that trades virtual items and is making at least 40 CFHTTP requests per second to the host's server.

 

The issue I'm encountering is that it's taking anywhere from 400ms+ for my CFHTTP call to return a response which means my application is missing out on 99% of the deals it finds, as there are lots of other competiting applications out there that are getting a faster response.

 

I've struggled to find a cause and/or a solution to this situation so I wrote a script in both CF and C# that makes 10 http requests timing each one which resulted in the following response times:

 

In CF using the following browsers:

 

IE9: 384, 444, 302, 570, 535, 317, 510, 349, 357, 467 - Average 423.5ms

Firefox 27.0.1: 354, 587, 291, 480, 437, 304, 537, 322, 286, 652 - Average 425ms

Chrome: 300, 328, 328, 639, 285, 259, 348, 291, 299, 414 - Average 349.7ms

 

In C# Console Application:

 

597, 43, 96, 52, 44, 305, 67, 91, 54, 270 - Average 161.9ms

 

As you can see there is a big performance difference when making an HTTPWebRequest in a C# Console Application which is making me think that perhaps the CFHTTP requests are being throttled? Or could it maybe be something to do with the browsers?

 

Any help would be greatly appreciated! 


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>