开发者

Server push solution on Rails

I'm working on a multi-platform (iPhone, An开发者_如何学编程droid, WM7, web), multiplayer game with Rails backend (2.3.10) and needs server push functionality. What is the best Rails solution for handling server push that works with multiple client side platforms? Is it Juggernaut, Comet, Cramp, pusherapp, or ?


One option would be to use Faye (Ryan B. did a screencast on Faye).

My experience is that Eventmachine constitutes a great foundation for doing event-based stuff - Pusherapp is build on top of this. So if you want to take on the more difficult solution, you should consider writing your own pub/sub server - perhaps using em-websocket.

Lastly, while some consider Pusherapp expensive, it really is both simple and rock solid.


You'll have to deal with a multitude of weird mobile browsers. If they support HTML5 websockets, use it! Pusherapp seems to be great for that.

I think Pusherapp also has Flash fallback for clients that don't support websockets yet.

I guess that with websockets + Flash fall-back you'll have 98% of the modern smartphones covered. Give it a try.


I created a gem in order to create a central push notifications, it supports iOS and Android at the moment, but i will add more platforms.

here is the link: https://github.com/NicosKaralis/pushmeup

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜