mongodb also seems to have the concept of connection pooling. The default maximum number of connections is 1024, and each connection consumes a certain amount of memory resources.
How to understand this "connection" ofmongobd? For example, in node, only one process starts the node program, and when starting the application, the account password is configured and the database is specified. As the program starts to connect to the Mongobd database automatically, is a connection to mongodb established?
the launched node program receives a lot of http requests, and in each request operation, the previously created connection object is called to perform the operation on the mongodb. That is, no matter how many http requests node receives, doesn"t it always have only one connection to mongodb operating on the database? How to understand the number of connections in mongodb? If so, the default maximum of 1024 connections does not seem to be needed.