Search code examples
ruby-on-railsrubydrb

How reliable is DRb?


Are there any issues to consider when using DRb for implementing an in-memory message queue and for synchronizing actions between processes? I heard that it could be unreliable, but haven't found anything on the web that confirms this assertion.

In case it's relevant, these would be processes running with a rails app environment that will update models in the database.


Solution

  • DRb is pretty established and widely used. I don't know of anything that would make it unreliable, but I don't use it as a message queue

    I'd say you'll have more luck using a message queue as a message queue, instead of rolling your own using DRb. There's a bunch of solutions depending on your needs, memcacheq is pretty easy to interact with, and is in-memory, and is pretty solid.