On Sun, Nov 18, 2012 at 7:48 AM, DeMarco, Alex <[email protected]>wrote:

> I have a web app that at times can make many outbound http calls.  For
> example I have a page that collects various rss feeds from other sites and
> then parses them and finally displays them all on one page for the user.  I
> have a few questions.:
>
> Is there a limit to the number of outbound http calls CFMX 9 can make?
>

Assuming you aren't in a cluster, some creative use of CFLOCK would do the
trick. If you aren't familiar with CFLOCK, check the documentation. You
could also reduce the number of threads as Russ suggests, however I would
recommend putting some code in place to do something when that max is
reached or else you're just creating a new problem from the old one.


> Is there a way I can see the total number of outbound http calls going on?
>

Outside of CF there would be a number of network monitoring tools you could
use for this. You could also do some creative application or session scope
monitoring of start and stop counts for certain activities.


> It would seem to me that this is a poor design under load conditions.  Is
> there a better way to fetch off site content?


Are you doing it in realtime when a user's requests a page? Yes, that is
poor design.

Try loading the content using a background process of some sort (ie:
scheduled task) and then staging it all in a table. That way when the user
requests the page you aren't triggering a bunch of CFHTTP calls.

-Cameron

-- 
Cameron Childress
--
p:   678.637.5072
im: cameroncf
facebook <http://www.facebook.com/cameroncf> |
twitter<http://twitter.com/cameronc> |
google+ <https://profiles.google.com/u/0/117829379451708140985>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:353234
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to