-
Notifications
You must be signed in to change notification settings - Fork 472
Conversation
@wision what is the purpose of the multiple servers in this PR. Is it for redundancy, lower latency, other? |
I think this PR is looking pretty good. We need to address feedback and add some tests. |
The reason is redundancy / failover. We have three ldap servers and it became important that we keep serving requests even if one of the servers is down (e.g. maintenance or similar). |
Anyone has an idea how to fix that windows test? Before adding |
Ok. When I first saw "multiple servers" I thought it would be for lower latency. I thought it would try to connect to all of the servers at once and choose the first one that responds. |
Co-authored-by: Tony Brix <tony@brix.ninja>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'll merge release likely this weekend.
It might be worth it to create a demo in the docs of how someone could randomize the array before sending it to ldapjs in order to achieve the other strategy. |
This change adds support for passing an array instead of a single URL to createClient(). Added upstream in ldapjs/node-ldapjs#658
* [ldapjs] Add support for multiple URLs This change adds support for passing an array instead of a single URL to createClient(). Added upstream in ldapjs/node-ldapjs#658 * [ldapjs] Update the long-outdated type definitions header * [ldapjs] Lower version in type header to 2.2 This brings the typing in accordance with when the "multiple URLs" feature was actually introduced.
Please include a minimal reproducible example |
Resolves: #408