-
Type:
Story
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Web
-
None
Use Case
As a Data Explorer user I want to avoid redundant network roundtrips when connecting So that I can start querying my data seconds faster
User Experience
- Reduced connection time by eliminating redundant ping commands
- Users will see their cluster connect faster (lower round-trip times)
Risks/Unknowns
- Need to ensure first meaningful command doesn't break existing connection logic
- AutoEncryption path may have special requirements that need the buildInfo check
Acceptance Criteria
Implementation Requirements
- Remove redundant ping commands from Compass and devtools-connect layers (driver's ping already removed)
- First command executed should be meaningful for Compass operations rather than a ping
- For autoEncryption scenarios, buildInfo check should remain but no additional pings
- Avoid running any pings on compass-web startup
- Performance target: Reduce connection RTT by eliminating 2 unnecessary ping roundtrips
Testing Requirements
- Verify that an auth containing connection string does not run ping
- Verify a no auth LB cluster still throws an error if the hostname does not exist
References
- https://github.com/mongodb-js/compass/blob/ef67e94d2fe116604e0cd8e7134f73664ca24c85/packages/data-service/src/connect-mongo-client.ts#L255
- https://github.com/mongodb-js/devtools-shared/blob/e3c7a8441131a2447858b2ebf13884042337f68b/packages/devtools-connect/src/connect.ts#L117
- https://github.com/mongodb/node-mongodb-native/blob/b6c0db2f6301874cccc423e4adb090ad9d07c460/src/sdam/topology.ts#L474
- is related to
-
NODE-7020 Remove Ping on Client Connect
-
- Closed
-
-
NODE-7088 Change the readpreference requirement in connect to nearest node
-
- Backlog
-
- related to
-
COMPASS-9536 skip the ping the driver runs in the devtools-shared devtools-connect package
-
- Closed
-
-
COMPASS-9549 Efficient Parallelizing waterfall of commands in Compass
-
- Closed
-
-
COMPASS-5341 Ensure that connecting with loadBalanced=true to unavailable host fails
-
- Closed
-
-
NODE-4192 Make operations call MongoClient.connect automatically
-
- Closed
-