my problem is that i don't know clearly how to build and manage mongodb connection pool, i want to make a pool by the code. but i don't think it's right. my thinking is that step 1, a global varaiable "new instance", and step 2, some clients share this instance or get connection from the pool.