Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-42885

Registering multiple change stream watchers over single db connection

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None

      Description

      Currently, change stream requires 1 connection for each watcher to be notified through MongoDB driver.

      In a fairly medium complex reactive application or in micro service architecture having hundreds of watchers is common but since MongoDB driver consumes 1 exclusive DB connection for each watcher registered it becomes a scaling problem.

      A more reasonable design would allow registering/multiplexing multiple watchers over single DB connection.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-query-execution Backlog - Query Execution
              Reporter:
              corporate.piyush@gmail.com Piyush Katariya
              Participants:
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated: