Answer the question
In order to leave comments, you need to log in
What database is better to use for a browser game if the server is on Node.js?
Hello everyone, please advise.
Faced with the question of which database is better to use, I am making a game for practical purposes, a card game, such as MTG and XC.
What is the best DB? The server will be written in Node.js.
Thanks for the help.
Answer the question
In order to leave comments, you need to log in
Choose a database depending on the data storage scheme. If relationships of the type hasOne, hasMany, manyToMany are assumed between the data, then it is better to use a relational database of the MySQL type. If you want to store some kind of dynamic structures, then it's better to take MongoDB, or another document-oriented database.
That. which you know better. There are drivers for the node for all popular DBMS
For hot Redis data, for the rest it doesn't matter - postgres, muscle, mongo.
See what you need. If all the data fits into strict relational tables, MySQL is enough. If there is a lot of schemaless data, and strict checks and triggers are not needed - MongoDB. Well, Postgre will make it possible to both apply strict checks and store part of the data in a free format, in a JSON type field .
If you need a partner, write in a personal :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question