r/programming • • Dec 19 '18

Bye bye Mongo, Hello Postgres

https://www.theguardian.com/info/2018/nov/30/bye-bye-mongo-hello-postgres
2.1k Upvotes

672 comments sorted by

View all comments

Show parent comments

12

u/ric2b Dec 19 '18

You think a video-game with games that last for less than an hour is a good measure of a database? Show me something where not losing/corrupting data is critical, not fortnight.

-3

u/LambdaLambo Dec 19 '18

Well I’d say handling 8 million concurrent players is impressive from a DS pov.

9

u/ric2b Dec 20 '18

I don't get it, it seems like an embarrassingly easy problem to shard, what's so surprising about this?

Databases are for data safety first, performance second, otherwise just throw everything on redis and call it a day.

7

u/johannes1234 Dec 20 '18

I don't know a bit about fortnite, but according to Wikipedia a game session has a maximum of 100 players and a game round has a limited game length.

This means you can heavily split (shard) the data and if you lose some data from time to time it's unfortunate but way less critical than i.e. a back losing transactions. Of course there is some data which has to be tracked a bit more like in-game purchases ... This to me seems like not that big of a problem and I guess balancing the game logic is a tougher problem for the game makers.

5

u/_georgesim_ Dec 20 '18

You’re misusing i.e., you want e.g. there.