I'm working on a project for fun. I've never created a multi-player game before so I decided to build one. For the sake of simplification; let's just say this game is online poker because the game mechanics are the same. Think: players sit at table; players take turns (timed) making moves; chat; etc.
My current setup is the following. Rails3 website hosted on Heroku. The website contains working logins (devise + heroku db) and a websocket chat room.
What I'm wondering is; seeing as all the Rails stuff is session based. How do I handle the turn timer? Don't I need some piece of the equation that holds the state across all the sessions and is able to keep track of time / throw events? Do I need a separate server? Or can I run this thing via my current setup?
If I do need another server; how do I do this with Rails? Another Heroku app? Is this possible under Heroku? Kinda new to Rails; so any help understanding this would be very much obliged.
Btw; any articles related to this topic would be much appreciated.
Can this be done with Delayed Jobs?