coinbase / mongobetween

Apache License 2.0
116 stars 47 forks source link

Pin cursors to connections #70

Closed prestonvasquez closed 3 months ago

prestonvasquez commented 6 months ago

The current implementation of MongoBetween uses a cursor caching solution with N >= 1 Mongos (LB7), so cursors being pinned to servers is acceptable. However, when load-balancing at the TCP layer it is not possible to target the same Mongos behind a load balancer when pooling connections (which is done under the hood in the Go Driver). This PR proposes pinning cursors and transactions to connections to account for this.