AMQP subscriber inside Rails app

Posted by Fotios on Stack Overflow See other posts from Stack Overflow or by Fotios
Published on 2010-05-14T15:00:31Z Indexed on 2010/05/14 15:04 UTC
Read the original article Hit count: 251

Filed under:
|
|

Is it possible to start an AMQP subscriber with my Rails app? Possibly through an initializer or something.

I'd like to have it running at the same time that can also interact with Rails models. Below is a pseudo-code example of what I mean.

queue.subscribe do |msg,body|
  Foo.create(....)
end

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about amqp