Can LdapConnection object be shared across multiple threads to search to DC


our application has perform many concurrent searches on multiple domain controllers. application server based application run windows service.

we re-designing application better performance. evaluating system.directoryservices.protocols namespace. have questions on connection management.

1. if go s.ds.p, there no in-built ldap connection pooling. correct?

2. can use same ldap connection object perform searches concurrently from multiple threads? bind called in single thread when connection requested domain controller first thread.

article here suggests long bind done on single thread, ldap connection can shared across multiple threads. can please confirm or deny if understanding right?

https://www.techgalaxy.net/docs/dev/using_adsi_and_ldap_with_ad.htm

if there any good pointers best practices doc high perf ad applications, please include.

thank time in advance.

regards

anil lingamallu

hi,

based on information researched, connection "pool" can implemented using single connection shared across multiple application threads (possibly processing multiple requests concurrently separate threads), better idea use multiple connections each used process @ 1 operation @ given time. result in better performance, , provide better isolation application components in event of failure.

ldap connection pooling

https://blogs.oracle.com/directorymanager/entry/ldap_connection_pooling

please note: since web site not hosted microsoft, link may change without notice. microsoft not guarantee accuracy of information.

more articles reference:

introduction system.directoryservices.protocols (s.ds.p)

https://msdn.microsoft.com/en-us/library/bb332056.aspx

system.directoryservices.protocols namespace

https://msdn.microsoft.com/en-us/library/system.directoryservices.protocols%28v=vs.110%29.aspx?f=255&mspperror=-2147217396

since issue more related development, suggest refer experts the msdn forum professional support:

https://social.msdn.microsoft.com/forums/en-us/home

best regards,

alvin wang


please remember mark replies answers if , un-mark them if provide no help. if have feedback technet subscriber support, contact tnmff@microsoft.com.



Windows Server  >  Directory Services



Comments

Popular posts from this blog

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com

Azure MFA with Azure AD and RDS