A
A
alex4answ2020-04-29 21:55:58
MongoDB
alex4answ, 2020-04-29 21:55:58

Is mongodb suitable for a task with few connections?

As a practice on Node.js, I decided to make a project.

I can’t choose a database, I’m looking at MongoDB because, as I understand it, this is the standard Node + Mongo bundle .

I will have literally several tables of the type:

user
User = {
  name: String,
  created_at: Integer
}
offer
{
  name: String,
  from: User, // указатель на user._id
  to: User, //указатель на user._id
  created_at: Integer
}
offer_item
будет несколько для 1 offer
OfferItem = {
  name: String,
  description: String,
  offer: Offer, // указатель на offer._id
}


Accordingly , there are connections , but there are not many of them (I can’t imagine a single table where there is at least some kind of connection, except for the most banal ones)

After some time, I want to divide this monolithic project into microservices , this is also + in the mongo piggy bank.

Should I use mongo in my project, or is it still better not to stray far from the classic * SQL, why ?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question