Hi folks,
I have a question about databases. I’m working on a multiplayer game and I don’t know which database I should use. Shortly, my game is about fighting between two players with some machine guns. There are many informations that I need to store like player’s stats (wins, loses, …), player’s bought improvments (some machine stuff), also some microtransactions, in-game messaging and stuff like that.
Could someone help me with it?
Long before you can choose databases you will need to answer a whole lot of questions about what target you’re running on OS- and hardware-wise, how often the data needs to be updated, how big is it, can you trust the user or does the data have to be stored on a server, authentication, spoofing, etc.
For now in early times, put all your data behind some common API object, and write ALL your code to only use that API object. For day 1 it can just be an in-memory dictionary.
When you ultimately outgrow that, start looking at other solutions that meet your defined requirements above. If you engineer your API storage object to always use asynchronous callbacks then the actual implementation can change however you need in the future.
1 Like