473,385 Members | 1,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Shared the Cache object accross IIS Applications


Is there any way that 2 IIS Applications:

localhost/App1
localhost/App2

can share a Cache?

Lets say that both applications need to use the same objects
frequently, and both are storing them in Cache. Is there a way to
avoid duplicating this? Putting everything in 1 cache?

Dec 6 '05 #1
2 1280
no, because they are in seperate app domains. you could write a cache
hosting service, that they all call, but then you would be doing out of
process marshaling (even cross domain marshaling is slow).

-- bruce (sqlwork.com)

"cmay" <cm**@walshgroup.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...

Is there any way that 2 IIS Applications:

localhost/App1
localhost/App2

can share a Cache?

Lets say that both applications need to use the same objects
frequently, and both are storing them in Cache. Is there a way to
avoid duplicating this? Putting everything in 1 cache?

Dec 6 '05 #2
I've never tried this, so I don't know if it will work. You could
serialize your objects to a file and create a dependency on the file.
use the same file in both apps. I would create a Helper class used by
both applications and be sure and lock the object when reading and
writing so you don't have any race conditions.
This article might help.
http://msdn.microsoft.com/msdnmag/is...7/CuttingEdge/

A little more searching and I found this article, which describes
exactly what I'm talking about.
http://www.eggheadcafe.com/articles/20030420.asp

Good Luck

Dec 7 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Alex | last post by:
Hi all, We're looking at a vendor who uses the InterSystems Cache Database Platform, but our IT department has zero experience with this system. This software package will have a pivotal and...
3
by: tom | last post by:
Hello, I'm using the ms data access application blocks. My question is about the fact that everywhere shared methods are used. Does this mean that when more than 1 user at the same time...
6
by: Grandpa Pete | last post by:
How can I share resources across all users of a web service for read/write access. *Situation* *one*: I want to have an in memory counter that all users of the webservice could access. Call...
2
by: Martin | last post by:
Hi, I have been trying to find a good article that would explain the scalability of the cache and application variables accross a web farm. I believe that application variables will not scale...
15
by: Rob Nicholson | last post by:
A consequence of the ASP.NET architecture on IIS has just hit home with a big thud. It's to do with shared variables. Consider a module like this: Public Module Functions Public GlobalName As...
4
by: Chris | last post by:
Hello, I'm just getting started with VB and am new to the group, so please excuse what may seem to be a rudimentary question. I've been writing basic programs and have noticed that the...
2
by: moondaddy | last post by:
I want to cache a dataset on a server via a web service. I was thinking of caching it in a session object and returning the session ID as a string in the web service back to the windows client. ...
5
by: Simon | last post by:
Hi all, We have an ASP.NET 1.1 application running on IIS6 on Server 2003. Most of the base objects we are using in this application are taken from a windows application also written by us. We...
3
by: Max2006 | last post by:
Hi, Is Page.Cache global and shared between all session? What would be the best way to cache an object and share it btween all sessions? I like to avoid Application object because it doesn't...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.