durusmail: quixote-users: Forking question
Forking question
2004-05-19
2004-05-19
2004-05-19
2004-05-19
2004-05-19
2004-05-19
2004-05-19
2004-05-19
2004-05-19
2004-05-19
2004-05-20
Forking question
Tom Jenkins
2004-05-19
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hello all,
while this is not specifically a quixote question, this involves a
quixote app and i'm gonna take advantage of the knowledge base here .

we have an application where users enter information that will feed into
a long running process.  what they would like is to enter the
information, submit it and receive a response with the url that they
should go to in an hour to get their results.

what is the best way to handle this type of situation?  should the
quixote class handling the request take the information, setup the long
process and fork a child to run the long running process, while the
parent returns the reponse?  or should we pass the information to some
"thing" (be it database/config file/whatever) and have a separate
process that polls for entries to that thing that then handles running
the long running process?

intuitively i like the first option but i have to admit i'm not
confident that i really understand forking.  so any pointers to forking
would be gratefully accepted also.

thanks

- --
Tom Jenkins
devIS - Development Infostructure
http://www.devis.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0-nr2 (Windows XP)
Comment: Using GnuPG with MultiZilla - http://enigmail.mozdev.org

iD8DBQFAq35NV7Yk9/McDYURAkddAJ0U6oqWjSmaN8uaRjIkSpz8dJTVMACfarTE
rPPcUa1SGrfRYeA13wXKh3Q=
=x2RU
-----END PGP SIGNATURE-----


reply