Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3961

Docs: Clarify cold publishers

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Labels:
      None

      All Publishers returned from the API are cold, meaning that no I/O happens until they are subscribed to and the subscription makes a request. So just creating a Publisher won’t cause any network IO. It’s not until Subscription.request() is called that the driver executes the operation.

      This is incorrect as its the subscription that may trigger i/o see: Hot Versus Cold with cold publishers nothing happens before you subscribe - regardless of the initial demand. So some IO may occur on subscribe, determining sessions / creating cursors.

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            ross@mongodb.com Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: