This on-line game of go by Ryan Bates uses a background process to
compute moves when playing against the computer.
https://github.com/ryanb/govsgo
It uses Resque
Doug
Douglas Lovell
www.wbreeze.com
On 07/11/2012 05:48 AM, rubybox wrote:
In my app I have the need to be able to have "realtime actions"
* be able to redirect a user to location X on time Y
* be able to send data from resque like a jquery function
Im currently using
* resque for running background deamon that can execute on Time Y anything
* faye to listen to a channel ( web sockets ) for any data received
then with jquery redirect or show or hide a div.
The problem with this setup is:
* sluggish ( it takes several seconds for the communication to go true
resque and then arrive the client
* not solid enough ( if user reloads browser at moment Y the data
stream is not received and it breaks )
What methods techniques I would have beside resque and faye to make this:
* Client polling/pulling? ( would not scale good ?)
* Solid, even if user reloads straight away it would resend the data
or trigger an action
* Make it more faster and in realtime response
*Basically I need to know what options I have to have realtime events in
ruby on rails and if there are any better ways techniques to do this
beside the ones stated above, anyone knows? thx in advanche!*
*Anyone has done any ruby on rails app with realtime events? Opensource
projects that do realtime events to take a look at and learn? *
--
You received this message because you are subscribed to the Google
Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/zmToMEiO-GUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en-US.
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en-US.