开发者

developing a real-time betting engine using redis / sinatra / thin

I'm currently building a real-time betting engine using redis / thin / sinatra. A pre-signup is available here at http://www.thematchfixer.com

I am using some logic on how betting od开发者_如何学编程ds are generated and how they change in real-time. That all seems to work fine (in any case this is just a game and no real-money is involved..so a few wrong odds here and there don't make much of a difference). What I'm getting stuck with is the idea of having a pub/sub implementation using the current technology stack (redis / nginx / thin / sinatra). People suggested that I should be using nodejs or erlang, but because of the learning curve and lack of time, I don't want to try them out right now. Is there any way how I can achieve Comet over my current technology stack (and use the redis pub/sub out of the box) ?

Any help would be highly appreciated.


I haven't tried it yet, but there's Faye (Node and Ruby compatible):

http://faye.jcoglan.com/ruby.html


Well I think what you are looking for is Cramp, its been recently released, it is a ruby framework based on asynch requests. You have a great explanation and first steps here:

Introducing Cramp

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜