Solved

Speed up CFHTTP Request

Posted on 2011-03-24
4
1,104 Views
Last Modified: 2012-05-11
What is the best way to speed up the CFHTTP. When a user access my website I need to make 3 calls to 3 different APIs to get some data. The problem is that these 3 calls slowed down my website.

I saw in a blog that using CFTHREAD would improve the speed, is that correct?
0
Comment
Question by:Medrise
4 Comments
 
LVL 36

Accepted Solution

by:
SidFishes earned 350 total points
ID: 35208139
It may (but I've not used it) There is another option which I have used and found to be far superior to cfhttp. It's a custom tag called cfhttp5 available for 50$ from http://www.cftagstore.com/tags/cfxhttp5.cfm with lifetime upgrades.

According to the page it "Increases the speed of HTTP communications up to 64 times" and has built in multithreading and true asynch capabilities and also easily support https. I run a mission critical app using this tag (and have for years) Whether it's 64 times faster I don't know but my code processes hundreds of POSTS/GETS a minute.

Scenario 1 on the linked page sounds almost identical to what you are looking for and shows a 2x speed increase

It also has a fully functional time limited eval DL so you can actually see if it works for you.

I'm a huge fan of this tag. It literally saved my business several years ago by doing things cfhttp simply couldn't
0
 
LVL 39

Assisted Solution

by:gdemaria
gdemaria earned 75 total points
ID: 35208388
We use it as well, very good tag !

It helped solve an SSL v2 issue the CFHTTP could not handle
0
 
LVL 11

Assisted Solution

by:Brijesh Chauhan
Brijesh Chauhan earned 75 total points
ID: 35212659
You are probably talking of the post below..

http://www.bennadel.com/blog/749-Learning-ColdFusion-8-CFThread-Part-II-Parallel-Threads.htm

I think it should make the processing faster, it's basically doing PARALLEL processing of a file

I have not used threads with CFTTP, but have used them to loop a query with lots of data and it does made a lot of difference in speed and processing.. here is my post on how it was done

http://blog.brijeshradhika.com/2009/03/using-cfthread-to-loop-through-query.html


0
 

Author Comment

by:Medrise
ID: 35214119
Thanks guys... I bought the CFHTTP5 tag since it looks like it will make a good improvement.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now