HighTechTalks DotNet Forums  

Asp.Net Cache-Concurrency issue?

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss Asp.Net Cache-Concurrency issue? in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Sundararajan
 
Posts: n/a

Default Asp.Net Cache-Concurrency issue? - 11-09-2005 , 11:43 PM






Dear folks,
I am using ASP.Net cache in my web application. is there any maximum
amount of concurrent access allowed for a cache. is there any bottle neck
that is possible when nearyly 100+ concurrent users are accessing the cache
--
S.Sundararajan

Reply With Quote
  #2  
Old   
Joerg Jooss
 
Posts: n/a

Default Re: Asp.Net Cache-Concurrency issue? - 11-10-2005 , 01:57 PM






Sundararajan wrote:

Quote:
Dear folks,
I am using ASP.Net cache in my web application. is there any
maximum amount of concurrent access allowed for a cache. is there any
bottle neck that is possible when nearyly 100+ concurrent users are
accessing the cache
Since Cache is thread-safe, there is of course some sort of lock
contention involved.

AFAIK the implementation uses ReaderWriterLocks, which is fine as long
as you're mostly reading data, but that doesn't really scale well if
you have many writers.

Cheers,
--
http://www.joergjooss.de
mailto:news-reply (AT) joergjooss (DOT) de


Reply With Quote
  #3  
Old   
Deep Kocheta
 
Posts: n/a

Default Re: Asp.Net Cache-Concurrency issue? - 11-14-2005 , 03:18 AM




Are you using whidbey?
If not, the readwriter seems to be suffering from problems under load,
expecially if there are frequent writes.

check out
http://www.dotnet247.com/247referenc...28/140664.aspx

also, scroll down on this link ..
http://www.andymcm.com/dotnetfaq.htm#11.6

regards,
Deep


"Joerg Jooss" wrote:

Quote:
Sundararajan wrote:

Dear folks,
I am using ASP.Net cache in my web application. is there any
maximum amount of concurrent access allowed for a cache. is there any
bottle neck that is possible when nearyly 100+ concurrent users are
accessing the cache

Since Cache is thread-safe, there is of course some sort of lock
contention involved.

AFAIK the implementation uses ReaderWriterLocks, which is fine as long
as you're mostly reading data, but that doesn't really scale well if
you have many writers.

Cheers,
--
http://www.joergjooss.de
mailto:news-reply (AT) joergjooss (DOT) de


Reply With Quote
  #4  
Old   
Joerg Jooss
 
Posts: n/a

Default Re: Asp.Net Cache-Concurrency issue? - 11-14-2005 , 04:46 PM



Deep Kocheta wrote:

Quote:
Are you using whidbey?
If not, the readwriter seems to be suffering from problems under
load, expecially if there are frequent writes.
That's not the ideal scenario for Cache anyway -- it's a read-mostly
solution.

But yes, ReaderWriterLock's current implementation seems to be rather
poor, according to what Jeff Richter said in an interview on TSS.Net.

Cheers,
--
http://www.joergjooss.de
mailto:news-reply (AT) joergjooss (DOT) de


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.