[thelist] Front page idea..
Chris Evans
chris at fuseware.com
Mon Apr 3 14:04:33 2000
Its a cool hack, but why not use some of the built in caching tools in CF?
You would still be using the CF engine, but rendering a page using CFCACHE
would be faster than the current page.
If you want to keep the front page dynamic, but lose some of the DB calls,
you could also store the QUERIES as application variables that expire every
five minutes.
Chris Evans
chris@fuseware.com
http://www.fuseware.com
-----Original Message-----
From: thelist-admin@lists.evolt.org
[mailto:thelist-admin@lists.evolt.org]On Behalf Of Daniel J. Cody
Sent: Monday, April 03, 2000 1:49 PM
To: thelist@lists.evolt.org; admin@lists.evolt.org
Subject: [thelist] Front page idea..
So, I'm 'watchin the game, havin a bud' saturday(badgers were sooo
close!) and was thinking that I was kinda pissed off that the front page
was taking so long to load on Friday after jeff's spring cleaning thing
got forwarded around.
We pushed about 9500 page views that day(our second biggest one day
total ever) and even though one person reported getting a CF error,
things were served pretty decent, except it was a bit on the slow side
at times.
So, I've been doing some bits o' benchmarking here on my own over the
past two days, and our front page is really fat on the DB calls(hence
its slow loading at times). Specifically, I've noted that it starts
taking above 1000milliseconds when we hit 30 concurrent DB connections.
On 4am Sunday morning, it will take about 350ms on average.
So anyway, back to the point... I'd like to take a lot of the load off
that front page without sacraficing features and think I've got a way to
do it. Try to follow along and offer your opinion:
Run a cron job(running CF on Unix gets better everyday :) that basically
does a 'lynx -source http://evolt.org >
/home/evolt/main_html/index.html' every 5 minutes. This creates a static
version of our dynamic page and saves DB connections(and CPU cycles)
untill someone actually clicks a link to an article.(I mean, whats the
point of doing 15 DB calls every time someone loads the frontpage for
people that just scan the frontpage for new topics). Also, because its
an .html page, it will render *MUCH* faster than a dynamic CF page. This
is the *KEY*. We could get 100K hits a day on our front page with the
current setup, and apache wouldn't break a sweat. Saving CF for the
other X% of page views that actually request a dynamic page is A Good
Thing.(tm)
Now, just to make it clear that I'm not un-confident with our current
setup. I'm just always thinking of ways to make our website more
responsive to our viewers.
So, check it out for yourself at http://evolt.org/dan.html - that is the
version running from a cron job and static HTML. Everything works. If we
set index.html instead of index.cfm as our front page, no one would even
notice.
So, anyone see problems with this approach? Roadblocks? Popsicles?
Issues? If not, I really think it could be a cool lil hack and I'd like
to implement ASAP.
weee!
.djc.
---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !