orionsbelt-battlegrounds / game

Mozilla Public License 2.0
1 stars 0 forks source link

Game persistence #2

Open donbonifacio opened 8 years ago

donbonifacio commented 8 years ago

This is part of the v0.1 milestone.

We need a way to persist and load games. For v0.1 we only need the game entity. We can have an uuid for players and the uuid will be the only player info for the moment. For the game, we need an indirection that will be able to:

The implementation should:

The talked about datastore is RethinkDB. The talked about datastore is Datomic. Datomic is not the right persistence solution for the use cases where the system needs a high write throughput, so it is likely that it becomes inappropriate to be the hot storage for games. It is OK for the time being but it is important to keep this in mind.

EDIT: Replace RethinkDB with Datomic (08-05-2016) EDIT: Mention Datomic write throughput tradeoffs (19-06-2016)

jqmtor commented 8 years ago

@donbonifacio Didn't have the chance to read this documents until now. 👍 I think I agree with everything just now. Will start looking into this soon and if I have any new relevant findings, will post them here.

jqmtor commented 8 years ago

After some conversations, we ended up deciding to try out Datomic instead of RethinkDB. The main reasons were:

jqmtor commented 8 years ago

@donbonifacio check if you anything to add/change here.

donbonifacio commented 8 years ago

👍