Saturday, 15 September 2012

node.js - ldapjs ( using node-express) client.search is slow -



node.js - ldapjs ( using node-express) client.search is slow -

i utilize node.js expressjs ldapjs implement authentication.

i have requirement follows:

authenticate user find grouping names user part of find parent grouping names user's groups part of configured depth-level (3 of times); means find user --> find user'sgroup(s)---> find groups' parent grouping 3 more levels.

to implement above in node-express environment i'm using ldapjs passportjs (writing custom strategy fit our requirement).

my observation that, each of search requests made throgh ldapclient taking approximately 70ms, slow finish search requests need create (will need perform 60-80 search requests during authentication).

i implemented above serial requests(i create next request after current 1 finished).

how can perchance improve performance in case. available options can into?

i improve performance making search requests run in parallel, , making utilize of 'parallel-searches-end' callback handle parent search depth level.

the above possible async.parallel method of 'async' node module.

thanks might have looked this.

node.js performance express ldap passport.js

No comments:

Post a Comment