Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3514

SCRAM cache should be shared among all pooled clients

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.25.0
    • None
    • auth, libmongoc, Performance
    • None

    Description

      The cache for SCRAM credentials is attached to the mongoc_cluster_t object, which manages the connections for a single mongoc_client_t.

      However, this means that two mongoc_client_t's popped from a mongoc_pool_t have different SCRAM caches. I believe it should instead be moved to the mongoc_topology_t, so client pools can better utilize the cache.

      Attachments

        1. perf.svg
          200 kB
        2. scram-cache-testing.zip
          20 kB

        Activity

          People

            kyle.kloberdanz@mongodb.com Kyle Kloberdanz
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: