[GODRIVER-2899] Server selector constructors should not return interfaces Created: 11/Jul/23  Updated: 08/Jan/24

Status: Backlog
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: Preston Vasquez Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt Dependency
has to be done after GODRIVER-2965 Make the "description" package internal Blocked
Related
related to GODRIVER-2572 Add log messages to Server selection ... Closed
Epic Link: Go Driver 2.0: Driver
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

The server selectors in the Go Drive return the "ServerSelector" interface:

  • CompositeSelector
  • LatencySelector
  • WriteSelector
  • ReadPrefSelector

They should each be updated to return a struct that consumes a ServerSelectionFunc and any other information that is required to perform a server selection.

Rationale: Preempting the interface is not really necessary in any of these cases and makes the code fairly confusing.


Generated at Thu Feb 08 08:39:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.