Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4634

Solution/Architecture: queues or something else?

$
0
0

I have a multiple frontends to my service written in Node.js and workers written in Ruby. Now the question is how to make those communicate? I need to maintain dynamic pool of workers to handle load (spawn more workers when load rises) and messages are quite big ~2-3M because I'm sending images to workers uploaded by users through Node.js frontends. Because I want nice scaling I thought about some queuing solution, but I didn't find any existing solutions (or misunderstood guides) that will provide:

  1. Fallback mechanisms. Solutions I've found so far have single failure point - message broker and there are no ways to provide fallbacks.
  2. Serialization. So when broker fails tasks are not lost.
  3. Ability to pass big messages.
  4. Easy API for Ruby and Node.js
  5. Some API to track queue size so I could rearrange workers pool.
  6. Preferrably lightweight.

Maybe my approach is wrong? Maybe I shouldn't use queues but some other way? Or there's some queueing solution that fits requirements above?


Viewing all articles
Browse latest Browse all 4634

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>