.NETGURU
Hi ... Suggestion
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngcache' list.


yogesh.shetty@ftindia.com
-- Moved from [aspngfreeforall] to [aspngcache] by Charles M. Carroll <Click here to reveal e-mail address> --Hi ,I am crafting an high end enterprise application using .NET tech. Justthought to take all of u r opinions. My design should be flexible enough inscaling up i.e. adding more no of servers ( clustering & load balancing ).To improve the performance most of the data needs to be cached but cacheddata will be specific to a machine and in a load balancing scenario how do upropagate the changes to all of the machines ? Storing it in a databasecould be one of the common solution. but still a disk i/o is involved overthere and everytime u have to retrieve all the records instead ofincremental changes. Another solution is to store in Win2K-Active directorycache.Any other feasible solution will be highly appreciated...Regards,Yogesh S-----------------------------------------------------------------------Financial Technologies (India) Ltd.www: ftindia.com e-mail: Click here to reveal e-mail address+91 22 616 4145 (P) +91 22 612 2342 (F)---------------------------------------------------------------------------------------------------------------------The information in this E-mail (which includes any files transmitted withit) is CONFIDENTIAL and may be legally PRIVILEGED. It is intended solely forthe addressee and access to this email by anyone else is unauthorized. Ifyou have received it in error, please destroy any copies of this message,including any attachments, and delete it from your system notifying thesender immediately. Any disclosure, copying, distribution, dissemination,forwarding, printing or any action taken or omitted to be taken in relianceon it or utilizing the same for any purpose other than what it is intendedfor, is prohibited and may be unlawful.---------------------------------------------------------------------------------------------------------------------
Reply to this message...
 
    
Paul D. Murphy

Yogesh,

    IMO it depends on the nature of the data. If you are updating
lookup data, i.e. a product catalog that gets updated every 4 hours,
it's one thing. If you're talking about information like a user profile
or personalized content, associated with a session or changeable state,
it's another. I'll throw in a penny on each one.

    Static Data Caching

    The ASP.NET Data Cache is perfect for stuffing read-only data.
You can find it in the System.Web.HttpCachePolicy class. This class is
attached as an indexed property on both response and request, i.e.
Request.Cache[CACHE_ITEM_KEY]. There is an add method that will take a
timeout value and a callback method (delegate) that the Cache Policy
will call on expiration. You can use this to refill the cache item in
the HttpContext.Current.Cache (same cache). I'm not sure but if you use
the Web Farm stuff I talk about in the next section I think the cache
will automatically maintain affinity across the server. If not the
margin for error should not be great enough to make a tremendous
difference to the cache affinity across the farm.

    Session State

    State the travels with a session, or is volatile enough to be
associated with a session can stay in session just fine across a server
farm in ASP.NET. In you web.config file there are some options to define
where to store session. For a web farm you will want to place it in an
out of process data store, like Sql Server (or a dedicated session
server). There is a slight performance penalty here, but if your
application is scaling like that then your hardware infrastructure
should support it (Gigabit Ethernet, etc..). Like I said up there I
think setting these options will also maintain cache affinity.

    Rod Howard has some great stuff on GotDotNet about caching and
session stuff.

    http://www.gotdotnet.com/team/rhoward/default.aspx

Paul

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]=20
Sent: Wednesday, January 23, 2002 1:09 AM
To: aspngcache
Subject: [aspngcache] Hi ... Suggestion

-- Moved from [aspngfreeforall] to [aspngcache] by Charles M. Carroll
<Click here to reveal e-mail address> --

Hi ,

I am crafting an high end enterprise application using .NET tech. Just
thought to take all of u r opinions. My design should be flexible enough
in
scaling up i.e. adding more no of servers ( clustering & load balancing
).
To improve the performance most of the data needs to be cached but
cached
data will be specific to a machine and in a load balancing scenario how
do u
propagate the changes to all of the machines ? Storing it in a database
could be one of the common solution. but still a disk i/o is involved
over
there and everytime u have to retrieve all the records instead of
incremental changes. Another solution is to store in Win2K-Active
directory
cache.

Any other feasible solution will be highly appreciated...

Regards,
Yogesh S
-----------------------------------------------------------------------
Financial Technologies (India) Ltd.
www: ftindia.com e-mail: Click here to reveal e-mail address
+91 22 616 4145 (P) +91 22 612 2342 (F)
------------------------------------------------------------------------
----
-----------------------------------------
The information in this E-mail (which includes any files transmitted
with
it) is CONFIDENTIAL and may be legally PRIVILEGED. It is intended solely
for
the addressee and access to this email by anyone else is unauthorized.
If
you have received it in error, please destroy any copies of this
message,
including any attachments, and delete it from your system notifying the
sender immediately. Any disclosure, copying, distribution,
dissemination,
forwarding, printing or any action taken or omitted to be taken in
reliance
on it or utilizing the same for any purpose other than what it is
intended
for, is prohibited and may be unlawful.
------------------------------------------------------------------------
----
-----------------------------------------
| [aspngcache] member Click here to reveal e-mail address =3D YOUR ID
| http://www.aspfriends.com/aspfriends/aspngcache.asp =3D JOIN/QUIT

Reply to this message...
 
 
System.Web.HttpCachePolicy
System.Web.HttpContext




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification