spring-projects / spring-ldap

Spring LDAP
https://spring.io/spring-ldap
Apache License 2.0
342 stars 481 forks source link

Client side Load Balancing #498

Open mattwmj opened 5 years ago

mattwmj commented 5 years ago

Does spring-ldap has client side load balancing features? If does, how to config? If not, will it be implement in the future? And if I want to add client side load balancing myself, where shall I start?

I see that unboundid ldap sdk has client side load balancing features. Is it possible to config spring-ldap to use unboundid to connect ldap server?

Thank you!

ParkerM commented 5 years ago

Basic fail-over functionality is included and can be used by supplying multiple URL's to the spring.ldap.urls property (see here), but I don't believe something like round-robin or geo-based load balancing is built in. Such functionality would typically be offloaded onto the directory server(s) themselves. It could probably be implemented manually in the client, or better yet through a separate proxy service. The amount of control you have over the directory servers would determine which solution would work best in your case.

ParkerM commented 2 years ago

@rwinch could we close this please?