On page 3 we are introduced to architecture that is to be used:
“In Part One we’ll begin by building a stateful game server in pure Elixir. We won’t use a database to store the game state, and we’ll define our domain elements with native Elixir data structures instead of ORM models. We’ll maintain state with Elixir Agents, and we’ll wrap those agents up in a GenServer to provide a consistent interface to the game.”
My (newbie) question is - wont there be state that will need to be maintained (e.g. scores, game options, users) and wont this state be lost (given that its all in memory) between server restarts, deployments, redeployments, crashes? Or is there some way to re-initialise saved state (e.g. from S3) after crashing or redeploying? Thanks.