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

SCRAM cache should be shared among all pooled clients

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.25.0
    • Affects Version/s: None
    • Component/s: auth, libmongoc, Performance
    • None

      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.

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

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

              Created:
              Updated:
              Resolved: