[CSHARP-1124] Consider removing the SharedConnectionPool class Created: 20/Nov/14  Updated: 02/Apr/15  Resolved: 02/Dec/14

Status: Closed
Project: C# Driver
Component/s: Connectivity
Affects Version/s: None
Fix Version/s: 2.0

Type: Improvement Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The SharedConnectionPool differs from the ExclusiveConnectionPool in that connections from the SharedConnectionPool can be handed out to multiple callers in parallel, and they all share the connection.

Sharing is supported by pipelining all the operations from all the callers over the same connection. Outgoing messages are sent in the order in which they are queued to be sent, and incoming messages are processed in whatever order the server returns them in (current versions of the server will process the operations in the same order they are received).

The benefit of sharing connections in this way is that a client can probably get by with far fewer connections, which means less resources required at both the client and the server. The disadvantage (specially with current versions of the server that process operations in the order they are received) is that any slow operations cause all other operations queued behind them to be delayed.

However, it seems likely that we will not be supporting the SharedConnectionPool in the 2.0 release of the driver, so it should probably be removed from the code base until such future time as we actually start supporting shared pipelined connections.



 Comments   
Comment by Githook User [ 02/Dec/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1124: Remove the SharedConnectionPool class because we are not going to be supporting shared pipelined connections in 2.0.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/a3a814faaa9aab47d6c816d3c6ff5d691ae479a1

Generated at Wed Feb 07 21:38:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.