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

Docs: Clarify cold publishers

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: