Reputation: 28760
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
Reputation: 6046
Websockets is the thing to research, and Pusher is a good way to get started with it.
Upvotes: 3