I
I
Isaac Clark2015-06-18 14:42:04
Node.js
Isaac Clark, 2015-06-18 14:42:04

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

4 answer(s)
V
Vitaly Sivkov, 2015-06-18
@Dark_Knight

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.

I
Ilya Agafonov, 2015-06-18
@Tairesh

That. which you know better. There are drivers for the node for all popular DBMS

Y
Yuri Shikanov, 2015-06-18
@dizballanze

For hot Redis data, for the rest it doesn't matter - postgres, muscle, mongo.

K
Konstantin Kitmanov, 2015-06-18
@k12th

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 question

Ask a Question

731 491 924 answers to any question