dagda1
dagda1

Reputation: 28760

Real time Alternative to polling in ruby on rails (Jruby)

I have a long running operation that I activate by placing a message on a ruby resque queue. The endpoint does the work which might take many minutes.

I was going to periodically poll the database every few second but I think the world has moved on from polling. Is there a better way using ruby on rails to get the results as a push, perhaps using something like web sockets or comet?

Can anyone suggest anything to start my research?

Upvotes: 1

Views: 903

Answers (2)

rve
rve

Reputation: 43

em-websocket..or websocket-rails

Upvotes: 1

Andrew Nesbitt
Andrew Nesbitt

Reputation: 6046

Websockets is the thing to research, and Pusher is a good way to get started with it.

Upvotes: 3

Related Questions