SCRAM cache should be shared among all pooled clients

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 1.25.0
    • Affects Version/s: None
    • Component/s: auth, libmongoc, Performance
    • None
    • None
    • None
    • None
    • None
    • None
    • 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. perf.svg
          200 kB
        2. scram-cache-testing.zip
          20 kB

              Assignee:
              Kyle Kloberdanz (Inactive)
              Reporter:
              Kevin Albertson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: