Answer the question
In order to leave comments, you need to log in
Reverse reconnect to mongodb from nodejs app?
Hello.
There is a bot application on koajs and a database on mongo.
The database is stored on a separate mlab server.
A few days later, the bot stopped responding, the logs said that the required entry could not be found.
Restarted the application, everything worked.
Can this if the connection is somehow interrupted, then the connection to the database server will not happen back.
Answer the question
In order to leave comments, you need to log in
The first step is to find out for what reason the database fell off. The second is to make replicas in order to increase the availability of data. Replication is made just for such cases.
UPD: I found a similar question on stackoverflow , maybe it will help
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question