The Artima Developer Community
Sponsored Link

Java Buzz Forum
Caching Pages vs. Caching Data

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Caching Pages vs. Caching Data Posted: Aug 26, 2005 11:36 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Caching Pages vs. Caching Data
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement

I was on a new Web 2.0 application last nite. The Ajax was flowing nicely through this app, and it was sure pretty.

But then I started to notice some weird behaviour. If I added something it showed up fine on one page, but didn't show up on another. As I navigated around this world I kept seeing inconsistencies from area to area.

I see this from time to time, and normally it smells like aggressive page caching.

I have nothing against caching at the page level. It makes a LOT of sense for many things, as the closer you get to the user, the less work you are repeating.

However, you always pay a price in this balanced world of performance and scalability. In this case, there is a lot more to keep in sync, and a lot of people ignore that side of the equation.

This is why I really like to have a caching layer for my applications which are further towards the DB than the web page itself. This cache does the hard work of keeping all of the info that I need in sync, but when it does change, the dynamic web pages automatically get that update.

This means that you get a nice balance of all worlds:

  • Data is cached closer to the user, yet not too far from the DB
  • Access times to this data cache are almost in-memory, and very fast
  • You have consistent data showing up on all of your pages

As always, this will depend on what you are doing, and it is a tricky balancing act.... but let's try to not just turn on page caching and walk around, expecting everything to Just Work (tm).

Read: Caching Pages vs. Caching Data

Topic: A funny thing happened on the way to release… Previous Topic   Next Topic Topic: Eclipse CDT 3.0 final version

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use