[ back to toc ]


Date: 2002/04/25 12:44

Dear Peter,

I am writing a code for my website to search multi-site and fetch and
compare the prices of them. I am using LWP::parallel::useraget to submit
the search for the prices to multi-site simultaneously. The code did well.
My question is how I can real-time show the results to client. For
example, I fetch three sites A, B, C at the same time, and A site give the
reponse first, I need to show to visitor the result from A instantly,
while waiting the results from B, C.

I really appreciate you if you could answer this question or give me some
hints on it.


Well, you can not. You can fetch the results asyncronous in some other
process started from crontab from time to time or you can perform the
fetch in the CGI process and display only a single page.

However you have to treat the web page that appears as a response to the
query as a single entity appearing at the client at once when the page is
ready. This is the general and safe approach that you should follow. Any
other assumption is dependent on the browser type, network band witdth and
other factors.


[ back to toc ]