Every time a particular model object is created on the server, I want to
perform an additional operation that’s slightly more expensive, the
results of which aren’t necessary to show to the user. I was looking at
things like BackgrounDRb, but I really don’t think I need a continuous
process running in the background if I’m just going to be running this
operation on a per request basis. Also, I’m on a shared Dreamhost
server, so running continuous processes is not always very reliable on
its own. Is there a way that I can perform this sort of background
operation without running a continuous process? Thanks much.
I just wanted to bump this, I haven’t received any responses yet. Would
it be a good idea to use threads directly here? Any ideas?
Liam M. wrote:
Every time a particular model object is created on the server, I want to
perform an additional operation that’s slightly more expensive, the
results of which aren’t necessary to show to the user. I was looking at
things like BackgrounDRb, but I really don’t think I need a continuous
process running in the background if I’m just going to be running this
operation on a per request basis. Also, I’m on a shared Dreamhost
server, so running continuous processes is not always very reliable on
its own. Is there a way that I can perform this sort of background
operation without running a continuous process? Thanks much.
Liam,
its own. Is there a way that I can perform this sort of background
operation without running a continuous process? Thanks much.
Look at BBQ
http://pastie.textmate.org/private/vxqxcvv40omkrhvnzp6a
More solutions discussed here :
http://nubyonrails.com/articles/about-this-blog-beanstalk-messaging-queue
Alain R.