Free Jobs

Java Forums: Core Java (15) J2EE (3) EJB (5) Servlet (3) JDBC (6) Hibernate (2) Struts (1) Swing (1) Oracle (7) JSP (4) Other (10)

Topic: Caching-A way to Improve the performance of J2EE Application

To get the Posted Questions details daily in your mail Click Here

Share this Post on Facebook/Twitter/Orkut Bookmark and Share

User: mohit555 Post Date: 30 Aug 2010 03:05

Caching is used in web application for Faster response times,higher throughput and Higher availability of the application.It is quite useful in the case where several people are constantly grabbing at the same data.
In other words Caching is temp

Main Content:
So following is the points you should keep in mind while dealing with caching.
When you should Do caching:
1.If doing Caching at a particular point reduces network activity substantially then you have a real case for caching.
2.If the data to be cached is read-only then this is the right case for Caching.
3.If the difference between a cached data item and the source item is small then you can safely implement caching.
4.If too much of complexity is not added to the application while implementing caching.This generally happens when data is relatively dynamic.
When You should not do caching:
1.If a difference between a cached data item and the source item is critical to the user, then do not implement caching
2.Is the size of data being cached is too big and only a small but different part is required by differnt user
Then do not do caching.

A general Condition to implement caching is when it eliminates the need for a remote access ,the remote access here may be a database , a data access layer or any other tier of the appliaction.

About Writer:
Hi All,I am Java Developer From Bangalore

Writer's Link:

Writer's Email:

Post Comment

Similar Articles Top ArticlesLatest Articles Other Articles by this Author Copyright © 2009-2011 | All Rights Reserved
All content of this website is protected by copyright laws and should not be reproduced in any form or by any means without written permission
(Best viewed in IE 8.0+ or Firefox 3.0+ at resolution of 1024 * 768 or higher)