> Frans Bouma wrote:
> > To save webserver power because the website gets 500,000
> hits per day?
> > Perhaps a page caching with 1 minute per page will help. Often that
> > will give much more performance boosts than lowlevel caching with a
> > lot of overhead.
> >
> This is what we often do, but when the cache invalidates,
> those 500000 hits are wanting to update the cache and flood
> the db, I am exaggerating but you catch my drift :D Any one
> ideas how to prevent the flooding of the db (in a VB6 world) ?
If a page cache invalidates, the first request will hit the db,
the second will get the cached version.
But you can also use the system used by for example slashdot.
Say your webserver farm can render ALL the pages you want caching for in
10 seconds. This means that if you re-render all these pages every 20
seconds, your system will perform nicely no matter how many hits your
system gets, although performance can degrade a little when more
requests come in. After the site is rendered, it is cached completely
till the next re-render (which is using a render to cache mechanism)
The beauty of the system is that when extra performance is
required, you simply crank up the interval: not every 20 seconds, but
every minute you do a re-render.
Frans.
===================================
This list is hosted by DevelopMentor� http://www.develop.com
Some .NET courses you may be interested in:
Essential .NET: building applications and components with CSharp
August 30 - September 3, in Los Angeles
http://www.develop.com/courses/edotnet
View archives and manage your subscription(s) at http://discuss.develop.com