Answer the question
In order to leave comments, you need to log in
How is the interaction with mongo built on the server side?
Do I understand correctly: if you use the local version of mongo, you need to run the mongo server locally. That is, on the server side written in express js, a number of processes will be launched - mongo, express itself. is this normal practice? as I understand it: you set up the server, you run it on different ports. the client through api knocks on express, which in turn knocks on the local mongo server. Won't such a chain of performance problems create? Does it make sense to install a local version of mongo at all, or is it better to use an internet connection to the database?
Answer the question
In order to leave comments, you need to log in
Well, when you deploy, everything will work for you exactly as you described: client -> server -> database, there is no other way. But still, why bother with deploying mongo if there is a free MongoDB Atlas?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question