Hi!
We tried similar approaches, but always with some headache, because we were
not 100% sure that the CF-Server really completes the processing in any
case.
Theoretically it should be like this:
a) HTTP-Request for a CFML-Template is sent to a WebServer,
b) WebServer passes processing to CF-Server,
c) CF-Server processes the whole template (at least if there are no CF-Admin
Settings,
that limit the processing time, e.g. "timeout requests after n seconds")
d) the generated DataStream (i.e. HTTP-Response) is passed to WebServer,
e) WebServer sends it back to requesting client.
If the processing takes to long (or the client-browser is closed meanwhile)
the process
may be interrupted. Can we really be sure that "c)" is always
"transactional" and "atomic"?
Could it be that the WebServer realizes that the request takes to long and
then tell the CF-Server to forget about it?
regards,
-pt
-----Urspr�ngliche Nachricht-----
Von: Michiel Boland [mailto:[EMAIL PROTECTED]]
Gesendet am: Dienstag, 22. Mai 2001 22:14
An: Spectra-Talk
Betreff: Background processing
One of my co-developers came up with an interesting idea. There are some
things that can take a while to process, like metadata updates, workflow
updates, etc. These things combined take a few seconds to run. Now, to
increase the page speed from a user's point of view these things can be
run 'in the background' using the following hack.
The .cfm that is executing performs a CFHTTP to another template on the
same server that does all the time-consuming bits. The CFHTTP has a
timeout of one second (I tried CFHTTP with timeout=0, that did not appear
to have the desired effect. :)
This should work, but I have some moral reservations. :) Has anyone else
toyed with this sort of thing?
Cheers
Michiel
--
Michiel Boland <[EMAIL PROTECTED]>
Digital Valley Internet Professionals
Plantsoen 17, Wageningen, The Netherlands
Phone: +31 317 465555, Fax: +31 317 460276
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.