Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
331 views
in Technique[技术] by (71.8m points)

node.js - Getting wrong data from MongoDB Atlas if 2 clients request for data simultaneously with NodeJS Backend

I created a app with React Native, a NodeJS Backend and MongoDB as a Database. I created the free MongoDB Sandbox on MongoDB Atlas for testing. While testing the App with my friends there occoured the problem, that when 2 persons refresh the App at the same time (Request data from the DB at the same time) sometimes the data which gets displayed on the app is obviously wrong. It feels like that the Database or the Server (which is deployed on Heroku) are mixing the 2 requests up somehow.

Maybe there is someone out there, who got the same problem.

Thanks in advance for your answers!

question from:https://stackoverflow.com/questions/65915778/getting-wrong-data-from-mongodb-atlas-if-2-clients-request-for-data-simultaneous

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...