Mon, Sep 5 2005 12:15 AM
Rob van der Meijden
Authorization Manager (AzMan) facing high load
In my last post I showed a possible scenario for the use off the authorization manager (AzMan). Last week this scenario was tested in a high load environment and guess what … problems …
After proximally 5000 calls in 2 minutes sometimes a ComException occurred in the AzRoles.dll. I tried several workarounds to be sure that the problem was no my problem but an AzMan’s.
Fortunately that night I was meeting Deyan Lazarov from Microsoft and explained the problem I did encounter. I seems that AzMan internally caches the calls, so the behavior I described could cause AzMan some headaches reflected by the ComExceptions. Of course this is not correct, but … surprise … there is a work-around ... Just cash the different AzMan instances which by the way also gave me a better architecture, less calls to active directory for authorisation.
Deyan also gave me an interesting link of an Enterprise Development Accelerator For .NET whish has a piece of wrapper code for the AzMan com library.
Filed under: .NET