fabienjuif / subterra

Not finished clone of subterra board game
https://pedantic-lalande-d5e881.netlify.com/
0 stars 0 forks source link

online / optimize action storage #103

Open fabienjuif opened 4 years ago

fabienjuif commented 4 years ago

Right now we store pass actions in the state (for logs) It works well but in online mode we store actions in both places : in state and in actionsSnapshot. Maybe we can dispatch new actions to log to user in an other websocket message and then remote it from state in dynamodb

fabienjuif commented 4 years ago

Example state in mid game With actions: 26544 octets Without actions: 9931 octets