Search before asking
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?
Code of Conduct
Search before asking
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?
Code of Conduct