Lesson 4 - connection pool size

I think the test should change from poolSize to maxPoolSize in the execise, correct? Given that the code uses unifiedTopology: true.

Hi @Henrik_Holst,
maxPoolSize and poolSize are the same, except they relate to whether you are using the useUnifiedTopology: true setting.
If you are using useUnifiedTopology: true maxPoolSize is the spec-compliant setting to manage how large connection pools can be.
But if you are using useUnifiedTopology: false (or omits it) poolSize is the same thing but it’s a remnant from before we had the unified topology.
Albeit, in the 4.x version of the driver this duplication has been removed.

If you have any doubts, please feel free to reach out to us.

Thanks and Regards.
Sourabh Bagrecha,
Curriculum Services Engineer

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.