471,313 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Need architectural help to implement caching

i have to implement caching in my application, can any one tell me
about the good techniques to implement caching, or provide some
architectural help , so i can use it to my application.

i want to control caching dynamically according to my configuration.

Thanks,


Apr 4 '08 #1
4 1539
Girish wrote:
i have to implement caching in my application, can any one tell me
about the good techniques to implement caching, or provide some
architectural help , so i can use it to my application.

i want to control caching dynamically according to my configuration.
You figure out your requirements for the cache, check if there are
a quality solution available that meets those requirements, if yes then
you use that, if no you write your own.

Without knowing anything about app, data and requirements nobody here
can come with a specific recommendation.

Arne
Apr 5 '08 #2
On Apr 5, 9:39 pm, Arne Vajhøj <a...@vajhoej.dkwrote:
Girish wrote:
i have to implement caching in my application, can any one tell me
about the good techniques to implement caching, or provide some
architectural help , so i can use it to my application.
i want to control caching dynamically according to my configuration.

You figure out your requirements for the cache, check if there are
a quality solution available that meets those requirements, if yes then
you use that, if no you write your own.

Without knowing anything about app, data and requirements nobody here
can come with a specific recommendation.

Arne
Actually, I have to implement a content based website.
my requirements are to cache data by parameters(URL), each page can
have different cache time.
and i have to provide a control panel where site administrator can be
able to clear cache for the specific URL, complete page or whole
site.
or they can also able to change the cache time of a particular page.

GJ
Apr 6 '08 #3
On Sat, 05 Apr 2008 23:00:13 -0700, Girish <gj*******@gmail.comwrote:
Actually, I have to implement a content based website.
my requirements are to cache data by parameters(URL), each page can
have different cache time.
and i have to provide a control panel where site administrator can be
able to clear cache for the specific URL, complete page or whole site.
or they can also able to change the cache time of a particular page.
Well, I can't say that that really helps guide us with respect to
architectural suggestions.

That said, it sounds like the kind of thing that the Windows Server web
proxy ought to already be able to do. I don't have any first-hand
experience, but it seems like you should be able to insert the proxy
between your web server and the outside world, and let it handle the
caching for you.

Pete
Apr 6 '08 #4
Girish wrote:
>
Actually, I have to implement a content based website.
my requirements are to cache data by parameters(URL), each page can
have different cache time.
and i have to provide a control panel where site administrator can be
able to clear cache for the specific URL, complete page or whole
site.
or they can also able to change the cache time of a particular page.
If you are doing the website in ASP.Net, the Application cache will do a lot of
what you want.
You can add various objects, set caching time, and set dependencies on other
objects.
You clear objects by simply removing them from the cache.

Be aware, though, that caching is an optimization. Although it practice it
usually does what you want, in principle the cache can be reset at any time,
and does not guarantee that it will cache something for the time specified. The
model is that you write your code to see if something is in the cache, and use
it if is, else create it and add it. Also the application cache may or may not
carry across multiple instances of the web app, or application pooling, or what
have you.
Apr 6 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by John Spiegel | last post: by
1 post views Thread by John Keady | last post: by
10 posts views Thread by Luke Meyers | last post: by

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.