Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1259

Refactor mongodb-core to use a single Topology type

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: core
    • Labels:
      None

      Description

      Our Mongos and ReplSet topology types are not in fact topologies, they both represent containers of connections to servers. Together they comprise about 5k lines of code that mostly duplicate each other, with subtle differences (pickServer vs pickProxy). Since we already have a robust concept of TopologyDiscription s from SDAM, we should be able to combine the two of these, deduplicate the code, and reuse them for both deployment types.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              matt.broadstone Matt Broadstone
              Reporter:
              matt.broadstone Matt Broadstone
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: