Avoid web-service delay on an action

Hello all,

In a controller action, there is a call to Twitter’s update. While it
works
as expected, it indoubtedly added some delay to the action processing
time.
What I would like to do is push this twitter update to another thread or
to
the background.

I know I could use one of the many queue processing engines around do to
such thing, but it is for such a simple issue that I would like to ask
for
other’s people wisdom before proceeding.

Any suggestions appreciated.

Thanks,

Marcelo.

Marcelo de Moraes S. wrote:

In a controller action, there is a call to Twitter’s update. While it
works
as expected, it indoubtedly added some delay to the action processing
time.
What I would like to do is push this twitter update to another thread or
to
the background.

I know I could use one of the many queue processing engines around do to
such thing, but it is for such a simple issue that I would like to ask
for
other’s people wisdom before proceeding.

Sound like an excellent use case for delay_job (or similar) to me.

Robert W. wrote:

Sound like an excellent use case for delay_job (or similar) to me.

Oops. I meant up type delayed_job…

Thank you!