Skip to content

[Enhancement] (ldap) provide a connection pool for ldap client #66699

Description

@ludlows

Search before asking

  • I had searched in the issues and found no similar issues.

Description

when using ldap, people apply search actions more frequently (like 2 times) than that of login.
at the client side, we can provide a connection pool to serve the search requests.

Solution

The LDAP requests are divided into two distinct types based on their characteristics:

Search operations‌: These are read-only and connection-reusable. We leverage ‌Apache Commons Pool2 (v2.11)‌ to implement a connection pool, significantly reducing connection establishment overhead for high-frequency search traffic.

Auth operations‌: These are less frequent and inherently non-reusable (each authentication binds with a different user credential). We therefore retain the current implementation as-is, since the overhead of pooling would not yield meaningful benefits for this workload.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions