Hello everyone,

we've built a feature where we need to perform a bunch of external
operations (reading rss-feeds) when a user triggers a certain action.
This is an asynchronus process, so the user  has not to be bugged
while we import/parse the data - and it might take some time until all
feeds are parsed..

Till now we've basicly used "exec(' php %pathtobatchfolder%/
doanything.php +someparameters') to initiate the process. The user can
browse the page without any drawbacks.. once the script is finished,
the user will see the changed information once he visits the same page
again.

Drawback of this solution are the ApacheThread we use for each "exec-
process". This might cause some trouble by simply eating all available
apache threads if the page is heavily visited... #fail


Now the question to you guys:
How're you handling asynchronus tasks in your applications? We're
thinking about some solutions right now..

- use fcgi_php instead of exec, this will save us from wasting
ApacheThreads.. one thing we didn't figure out yet: passing parameters
to the script we want to execute..

- don't instantly exec() the script, save the action in the Database
and let a cronjob work on them... -> CLI Task, but we're far away from
realtime..

- ... anyone got some hints?

Greetings,
Christian


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to