Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Priority Algorithm for cache management in Java

Posted on 2006-07-14
Medium Priority
Last Modified: 2013-12-03

Far faster respone to database queries, I need to have a Cache in Java that mirrors the database. Now, this cache should be intelligent enough to determine:

1. what kind of data is queries very often and keep that at the top far faster access.
2. Should synch with database automatically after certain interval so as to avoaid staleness of the data.
3. Other components should push certain data changes/updates  to this cache and the cache should in turn synchronise the database.

Appreciate any idea/code how to implement such a cach and the underlying smart algorithm??

Vinay AGgarwal.
Question by:Vinay_enjoy
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 86

Accepted Solution

CEHJ earned 336 total points
ID: 17107014
LVL 24

Assisted Solution

sciuriware earned 332 total points
ID: 17107053
You might try EHCACHE but you're surely asking much.

LVL 35

Assisted Solution

girionis earned 332 total points
ID: 17107359
Hi Vinay_enjoy

a few free caching solutions can be found here: http://www.manageability.org/blog/stuff/distributed-cache-java/view

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

LVL 26

Expert Comment

ID: 17111082
what about hibernate solutins!

Author Comment

ID: 17119605
Hi ksivananth ,

Problem with Hibernate is:

1. May not be able to handle large volume of data as cache.

2. It anyway needs smart algorithm for :
  2.1 what kind of data is queries very often and keep that at the top far faster access.
  2.2 Should synch with database automatically after certain interval

LVL 24

Expert Comment

ID: 17362969

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question