Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-1108

Document best practices around Client usage / connection pooling

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.3.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      The generally recommended way to use a Client is to persist one for your entire application and reuse it across requests, in order to take advantage of the shared resources e.g. connection pool and monitoring threads.

      We should document this and explicitly note that the Client automatically handles connection pooling, as this has been a point of confusion for users in the past due to being a different model from how e.g. Postgres drivers tend to work, and has led to likely incorrect impressions about poor driver performance.

            Assignee:
            abraham.egnor@mongodb.com Abraham Egnor
            Reporter:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: