I want to use rails to program a multiplayer game and want to use global
variables to hold the game data. Since this data needs to be accessed
and modified often to drive the game I want store it in global variables
rather than go through the overhead of creating a model with a database
table. Is there a simple way of creating global variables in rails that
can change. If so how do you protect them so that they are only ever
accessed by one thread at a time?
Many thanks in advnace
If you game is popular, and needs to scale, you’ll be in big trouble
if you use global variables rather than the DB.
Tom M. wrote:
If you game is popular, and needs to scale, you’ll be in big trouble
if you use global variables rather than the DB.
Its not a big game