Socket polling and messaging


I have a legacy service sending data (well, messages to be delivered to
client) through a TCP socket. I need to deliver those messages to the
browser, likely through periodical ajax updates (I’ll adapt the
between visual comfort and server load).

I’d be interested to hear from people who have implemented something

I have various roads in minds, like:

  • a stateful ruby app doing the polling, and exposing data through dRB
  • same app, but storing the messages in a database queue (AR)
  • yet same app, but relying on ruby spread or another messaging system
    have the messages delivered

(btw, did you notice I didn’t even mention the word ‘container’ ? :slight_smile:

What do you think ?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs