Closed Akavall closed 7 years ago
Now unfinished games are stored in DynamoDB and we don't have limit of 60 any more; the server will not crash if we have too many games. I think the major problem is resolved. We do need to think of a way to clean up states of unfinished games, but feels like a separate issue.
If we don't finish the game, say we just exit the browser, the game stays in game list. When we reach 60 game, we hit a game limit.
The solution might be to track if the browser has been exited, I don't know how hard that is, and then delete games.
Another solution is to track of when the game got started, and delete any games that, say, more than an hour old.
Maybe there is a simpler solution.