Limiting concurrent MongoDB queries?

Is there a limit on concurrent requests that mongodb can execute in a second?

I am trying to implement an API that runs 300 requests in every request in mongodb.

Thus, if 100 client requests are requested per second, the number of requests becomes 100 x 300, resulting in high latency.

Any clue?

+4
source share
1 answer

The only limitation is the number of Congons that a Mongo can have in parallel. Check net.maxIncomingConnections

, . , .

, , . , 300 API /.

0

Source: https://habr.com/ru/post/1654675/


All Articles