RAM vs MongoDB for temporary game data?
<p>I'm writing a game where the current position of each player and game element needs to be handled and remembered by the server.<br>
But once the game is over all I need the server to remember is who won... basically.  </p>

<p>So I was wondering if I should store that data inside of an object or inside of the database. I think it would make my code a bit more readable to if I sued the db method and it would also allow me to resume games after a server restart.  </p>

<p>But here is the thing: The data is updated hundreds if not thousands of times per second.<br>
Would that significantly increase CPU usage, latency or so?</p>