Rails - asynchronous tasks, forked processes, best practices

Posted by LisaPatton on Stack Overflow See other posts from Stack Overflow or by LisaPatton
Published on 2010-03-30T17:05:12Z Indexed on 2010/03/31 13:53 UTC
Read the original article Hit count: 337

Filed under:
|
|

I'm using a Observer on my classes. When one of the records is created/updated I need to notfify another service (via a URL call). What is the best way to do this to avoid slowing down my class? Would using a gem liked delayed_job be overkill?

In my Observer's after_update() / after_create() I just want to launch a thread that calls the URL...

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby