Home All Groups Group Topic Archive Search About

Sharing the Cache between ASP.NET applications

Author
17 Jun 2009 6:57 PM
Matty J
Hi

I'm working on a website which has a CMS for administrators and a
public website. I'm intending on implementing data caching to improve
performance / reduce number of calls to DB. However, when the CMS
administrators make a change, the cache in the public website should
be purged so that the public get the up to date data (and so that the
administrators can check that their changes are live). The CMS and
public website are on two different sub-domains of the same domain,
but are both on the one web server and IIS instance. Is it possible to
share or access the cache across these two ASP.NET "applications"? I
thought that if I made the two apps both use the same Application Pool
it might be possible? However, from what I've found on Google it is
not possible to share the cache. FYI it's not a high traffic website.

Thanks for your response.
Cheers
Matt

Author
18 Jun 2009 5:15 PM
Patrice
Hi,

And the DB is ? See : http://www.dotnet-news.com/lien.aspx?ID=40262. IMO you
don"t have to share the cache. Just need to have one app tells to the app 2
that its cache is "dirty" :
- either app 1 updates SQL Server and SQL Server informs app 2 that the data
is dirty (is above)
- or it could be just your own message passing mechanism.

Later http://msdn.microsoft.com/en-us/data/cc655792.aspx could be interested
(but this is only a CTP at this time). IMO here app 1 and app 2 doesn't have
really the same need fo caching so I'm not sure it's worth to really share a
single cache.

Also of course make sure first before to check this is what could be
improved and that you cache the "good" parts...

Also if SQL server 2008,
http://code.msdn.microsoft.com/SQLExamples/Wiki/View.aspx?title=Manage%20unstructured%20data%20using%20FILESTREAM%20Feature%20in%20SQL%20Server%202008&referringTitle=Home
could be interesting (this is about the new Filestream feature).

--
Patrice


"Matty J" <mattyjen***@gmail.com> a écrit dans le message de groupe de
discussion :
6ab538fe-508c-4c29-bf48-0d29fa427***@f19g2000yqh.googlegroups.com...
Show quoteHide quote
> Hi
>
> I'm working on a website which has a CMS for administrators and a
> public website. I'm intending on implementing data caching to improve
> performance / reduce number of calls to DB. However, when the CMS
> administrators make a change, the cache in the public website should
> be purged so that the public get the up to date data (and so that the
> administrators can check that their changes are live). The CMS and
> public website are on two different sub-domains of the same domain,
> but are both on the one web server and IIS instance. Is it possible to
> share or access the cache across these two ASP.NET "applications"? I
> thought that if I made the two apps both use the same Application Pool
> it might be possible? However, from what I've found on Google it is
> not possible to share the cache. FYI it's not a high traffic website.
>
> Thanks for your response.
> Cheers
> Matt
Are all your drivers up to date? click for free checkup

Author
19 Jun 2009 10:29 AM
tdhop
Why not just use ASP.NET State Service for Web Farms?

http://www.c-sharpcorner.com/UploadFile/gopenath/Page107182007032219AM/Page1.aspx


Show quoteHide quote
"Patrice" <http://www.chez.com/scribe/> wrote in message
news:A6010C4E-30F7-4D49-B46F-0CE737B54D6B@microsoft.com...
> Hi,
>
> And the DB is ? See : http://www.dotnet-news.com/lien.aspx?ID=40262. IMO
> you don"t have to share the cache. Just need to have one app tells to the
> app 2 that its cache is "dirty" :
> - either app 1 updates SQL Server and SQL Server informs app 2 that the
> data is dirty (is above)
> - or it could be just your own message passing mechanism.
>
> Later http://msdn.microsoft.com/en-us/data/cc655792.aspx could be
> interested (but this is only a CTP at this time). IMO here app 1 and app 2
> doesn't have really the same need fo caching so I'm not sure it's worth to
> really share a single cache.
>
> Also of course make sure first before to check this is what could be
> improved and that you cache the "good" parts...
>
> Also if SQL server 2008,
> http://code.msdn.microsoft.com/SQLExamples/Wiki/View.aspx?title=Manage%20unstructured%20data%20using%20FILESTREAM%20Feature%20in%20SQL%20Server%202008&referringTitle=Home
> could be interesting (this is about the new Filestream feature).
>
> --
> Patrice
>
>
> "Matty J" <mattyjen***@gmail.com> a écrit dans le message de groupe de
> discussion :
> 6ab538fe-508c-4c29-bf48-0d29fa427***@f19g2000yqh.googlegroups.com...
>> Hi
>>
>> I'm working on a website which has a CMS for administrators and a
>> public website. I'm intending on implementing data caching to improve
>> performance / reduce number of calls to DB. However, when the CMS
>> administrators make a change, the cache in the public website should
>> be purged so that the public get the up to date data (and so that the
>> administrators can check that their changes are live). The CMS and
>> public website are on two different sub-domains of the same domain,
>> but are both on the one web server and IIS instance. Is it possible to
>> share or access the cache across these two ASP.NET "applications"? I
>> thought that if I made the two apps both use the same Application Pool
>> it might be possible? However, from what I've found on Google it is
>> not possible to share the cache. FYI it's not a high traffic website.
>>
>> Thanks for your response.
>> Cheers
>> Matt
>
>
Author
19 Jun 2009 4:26 PM
Patrice
This is intended for session state (that is per user information). This
particular area would be rather taken by "Velocity" (link in my earlier
post) that will likely ne part of .NET 4 or later...


---
Patrice

"tdhop" <td***@indochinapro.com> a écrit dans le message de groupe de
discussion : uoXMq9O8JHA.1***@TK2MSFTNGP02.phx.gbl...
Show quoteHide quote
> Why not just use ASP.NET State Service for Web Farms?
>
> http://www.c-sharpcorner.com/UploadFile/gopenath/Page107182007032219AM/Page1.aspx
>
>
Author
18 Jun 2009 5:21 PM
Matty J
Anyone?

Bookmark and Share