473,794 Members | 2,708 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Caching architecture question.

I am thinking about using Caching application block in my web
application, for the performance reasons.

My ideal sitiuation would be if i could plug in the application block
between my Persistence layer and database, so that objects are created
from the cache and cost of CRUd operation can be avoided....

the problem each object is not having a unique key, and caching
application block does not provides any typed cache functionality, for
example if i store a product object wtih uid 1 and a customer object
with uid 1 then it would overwrite the product object,

Iam thinking about creating a multiple cache managers according to the
type of object, and keep all those cache managers in a super cache...

in that case would the scavenger clean up caches inside a cachemanager
object ?

any comments
Dec 16 '05 #1
1 1144
The unique key will be a combination of uid and type.

Or you can take GetHashCode value ( if it is not overriden ) to identify
your objects...

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"Ashish" <as*****@thisis junk.com> wrote in message
news:er******** ******@TK2MSFTN GP10.phx.gbl...
I am thinking about using Caching application block in my web application,
for the performance reasons.

My ideal sitiuation would be if i could plug in the application block
between my Persistence layer and database, so that objects are created
from the cache and cost of CRUd operation can be avoided....

the problem each object is not having a unique key, and caching
application block does not provides any typed cache functionality, for
example if i store a product object wtih uid 1 and a customer object with
uid 1 then it would overwrite the product object,

Iam thinking about creating a multiple cache managers according to the
type of object, and keep all those cache managers in a super cache...

in that case would the scavenger clean up caches inside a cachemanager
object ?

any comments

Dec 17 '05 #2

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

Similar topics

6
2953
by: Gary James | last post by:
This may not be a direct C# question, but since I'll be using using C# for development, I thought I'd pose the question here. I'll soon be involved in the design of a new software product that will employ a software "Plug-In" architecture. Taking the plug-in route will give us a design that can adapt to, as yet, undefined future requirements (within the scope of the plug-in interface spec of course). In the past I've done this with...
10
1434
by: Jon Maz | last post by:
Hi, My goal is to take the entire html/javascript stream spat out by .aspx pages and save them as simple strings in a database (for caching purposes). I'm not sure how I can get hold of this html stream, though - does anyone have any strategies / code samples to get me going? Thanks,
2
1334
by: gavkel | last post by:
We are building a system with ASP.NET. Currently running through the optimisation of the system using different caching mechanisms. Were using Linux LBS for load balancing - this does not employ sticky sessions. So my question is this - what caching techniques can we use if we don't have sticky sessions across the load balances web servers? Thanks in advance
5
298
by: michaeltorus | last post by:
Is the only way to cache data in Memory, such as a Dom Document, to use System.Web.Caching namespace? I can't seem to find anything else, but what if you want to cache something in memory and you don't have a web app ? --- Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/
1
1421
by: Nemisis | last post by:
Hi everyone, We are currently re-developing our software, to asp.net 2.0 and taking a 3 tier architecture. I have been thinking about it, and i think that it belongs in the business tier. Another thing is am thinking about is what sort of caching should be done, because i really dont want to tie the business layer to only web
5
2025
by: ask ksa | last post by:
hi, is anybody familiar with production-ready distributed/clustered cache solution for .net ? Google helped me to found some (like ncache and scale-out-state-server), but they are over-priced thanks anyway for your time reading that
0
1151
by: Joseph Geretz | last post by:
I've done quite a number of IIS/ASP applications in the past and so I'm familiar with server side cache implementation using the IIS Application, Session, objects etc. My next project will be an IIS/ASMX project, that is we'll be implementing transaction processing on the server, exposed to the client application (WinForms) via Web Services. Other than the fact that with this architecture the UI is 'generated' on the client as opposed to...
3
1977
by: Gary W. Smith | last post by:
I had a couple questions about data caching. We have a site that gets a huge amount of traffic to a few specific pages that have a lot of data on them (300k hits/hour during peak, about 6-10 data calls per page OR 500 SQL calls per second). Most of the data doesn't change more than once ever 10 minutes. Basically they are data islands with specific content. We have already implemented a singleton that manages a connection pool. This...
2
1840
by: Ken Fine | last post by:
I have a question about ASP.NET output caching. I want to use screen scraping as a temporary hack to pull in some complex Classic ASP-rendered content into some ASP.NET pages: protected String ReadHtmlPage(string url) { WebResponse objResponse; WebRequest objRequest = System.Net.HttpWebRequest.Create(url); objResponse = objRequest.GetResponse();
0
9671
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9518
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10433
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10212
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10161
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2919
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.