-
Type: New Feature
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Configuration
-
(copied to CRM)
-
Needed
-
According to existing implementation the general advice on MongoClient usage is singleton lifetime scope.
Lately several small issues (e.g. CSHARP-3424) arose which require per-instance use of MongoClient. This lifetime scope will result in excessive memory usage and undisposed resources.
These small issues could be mitigated by making MongoClient IDisposable and changing the design accordingly to allow usage with short lifetime scope.
- is depended on by
-
CSHARP-4512 Update CMAP logging tests to include endSessions logs
- Backlog
- is duplicated by
-
CSHARP-4513 Problem with MonitorServer heartbeat threads.
- Closed
- is related to
-
DRIVERS-2547 Caching mongoclient connection
- Defining
-
CSHARP-3424 Using temporary credentials require recreating a client
- Closed