Solved

Priority Algorithm for cache management in Java

Posted on 2006-07-14
9
343 Views
Last Modified: 2013-12-03
Hi,

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??

Thanks,
Vinay AGgarwal.
0
Comment
Question by:Vinay_enjoy
[X]
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
9 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 84 total points
ID: 17107014
Ofbiz?
0
 
LVL 24

Assisted Solution

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

;JOOP!
0
 
LVL 35

Assisted Solution

by:girionis
girionis earned 83 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

Cheers
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 26

Expert Comment

by:ksivananth
ID: 17111082
what about hibernate solutins!
0
 

Author Comment

by:Vinay_enjoy
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

Thanks,
Vinay.
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 17362969
OK
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
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 if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

707 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