List Info

Thread: RE: Caching objects in a remote singleton




RE: Caching objects in a remote singleton
country flaguser name
United States
2007-02-09 15:24:33
You should also think about the amount of data that you want
to cache.  If 
you're talking about thousands of records, then just go to
the database.  
You're only talking about < 1 second latency and the data
will always be 
real-time.
I actually store tiny bits of data in an object and cache
the object.  I 
then check if the cached object still exists, if not the
framework punted 
it, then I have to recache.  See Cache.Insert(...) in help


>From: "Steven Smith" <steven.smithaspalliance.com>
>Reply-To: aspnet-architectureaspadvice.com
>To: aspnet-architectureaspadvice.com
>Subject: [aspnet-architecture] RE: Caching objects in a
remote singleton
>Date: Fri, 9 Feb 2007 16:13:38 -0500
>
>You likely won't see great perf gains from this
architecture unless the
>database is slammed or the query takes a LONG time to
return.  Why not put
>the cache on the webserver(s)?  Then it will be accessed
very quickly in
>memory.  If you're concerned about maintaining multiple
copies of the 
>cached
>data, there are options that address this including
ScaleOut StateServer,
>NCache, or ASP.NET 2.0 SQL Cache Invalidation.
>
>Steve
>
>
>-----Original Message-----
>From: Glenn Smith [mailto:glenn.aspgooglemail.com]
>Sent: Friday, February 09, 2007 11:57 AM
>To: aspnet-architectureaspadvice.com
>Subject: [aspnet-architecture] Caching objects in a
remote singleton
>
>Not sure i'm structuring my app right here.
>
>I'm writing a website, where primarily the data is
pulled from Oracle via
>PL/SQL.  The data will rarely change over time.
>
>So my thought was the best way would be to write a
remote object that is
>called by the web page to retrieve the data.  The first
time through the
>data would be pulled from Oracle.  The second time
through, either by this
>user or any other, the user would be pulled from a
cache.
>
>Is this the right way of going about it (ie. would use
you "remoting" or
>would you use a webservice, or any other way?). 
Assuming it is the right
>way, how would you cache the data  in the remote object?
 I was going to 
>use
>the "Cache" but this is (I think) a
System.Web.Caching object and I think 
>is
>therefore not designed to work within a standard class
library running on
>the server (?).
>
>Any thoughts gratefully appreciated.
>
>
>
>Need SQL Advice? http://sqladvice.com
>Need RegEx Advice? http://regexadvice.com
>Need XML Advice? http://xmladvice.com
>
>
>
>Need SQL Advice? http://sqladvice.com
>Need RegEx Advice? http://regexadvice.com
>Need XML Advice? http://xmladvice.com

____________________________________________________________
_____
Turn searches into helpful donations. Make your search
count. 
http://cli
ck4thecause.live.com/search/charity/default.aspx?source=hmem
tagline_donation&FORM=WLMTAG


Need SQL Advice? http://sqladvice.com
Need RegEx Advice? http://regexadvice.com
Need XML Advice? http://xmladvice.com

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )