I create a text game that implements a basic model in which several (10+) players interact with the data, and one moderator observes them and sets certain environmental statistics that affect the gameplay.
I recently started dating Django. It seems to me that this will be a great tool for quickly creating a game, especially because the nature of my game depends on a lot of data (which lend themselves well to the database).
I am interested in how to “push” the changes made by the game moderator to the players (for example, the moderator may decide to display the image for all players). The game is turn-based, not real-time, but some messages need to be pushed around in real time.
My thoughts: I could periodically check the status of each player in the browser (say, every 30 seconds) to find out if there is a message from the moderator. But this delays the lag and means that different players can receive it at different times. And reducing this interval to <10 seems like a bad idea for the server.
Is there a better way to keep customers informed of changes? Could you suggest something other than using a web infrastructure like Django?
Thank!