locked
LDAP querys: should use webservice or not? RRS feed

  • Question

  • User-2087708997 posted

    Hi Folks,

    As a starter, let me describe the scenario:
    There is this intranet app. (asp.net v1.1) which has many web contros. Each one of these web controls have a textbox, a label and a button. You place a name on the textbox, press the button and after the postback you get information for that name retrieved from Active Directory. This app. is used by about 500 users.

    I have 2 clear ways to achieve the webcontrols to do that:
    1- querying Active Directory directly from the web controls code.
    2- consuming a web service which queryes Active Directory.

    So, my question is: which one of these two options should I use? Not in terms of simplicity, but in terms of performance and best practices.

    Thank you for your help!!!

    Friday, May 18, 2007 4:38 AM

All replies

  • User-319574463 posted

     Are you able to cache the results in a SQL Server table? That way (provided you can accept a time lag in updating the cache) you could just update the cache overnight.

    Without SQL Server caching you could use a web service approach if:

    • You are prepared to use threading.
    • You have something else useful to do while the data is fetched. 
    Saturday, May 19, 2007 6:26 PM