• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help - performance issue in web-app using caching.

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I'm working on large web application which has got number of configuration parameters, i.e NO_OF_PRODUCTS_ON_SEARCH_SCREEN = 5.
Currently this parameters are in one Parameters.java file(statically loaded) and all action/ejb/jsp uses this .java file for usage.

if(Parameters.NO_OF_PRODUCTS_ON_SEARCH_SCREEN > 5){ //do something..}
else{ //do something else....}

Now ,as parameters do change frequently on client request, I have added all those to parameters to DB with creating proper schema. Lots of action/jsp/ejb uses this parameters(Let's say one web request uses 10 parameters) and If every time I make a DB request to lookup parameter it kills my performance so I have introduced caching between action/ejb/jsp and DB.I have used EHCache here and on lookup from acton/ejb/jsp goes to cache and cache result is returned if it's cached otherwise explicit DB request is made.

My application is in clustered environment and has got more than one server so I will have either go with 'cache replication' or 'share a cache'

Question 1 : If I am going to share cache , Is Symbolic link good solution?
Question 2 : What are the possible caching solution which has got this capability of replication in clustered environment. So far , I have explored EHcache , JCS and JBoss cache but need some more views (which is better,stable , faster for replication) to gain good performance in web-application.

Any views for above scenario or answers for questions would be great help.

[ January 06, 2008: Message edited by: vishalraju shah ]
[ January 06, 2008: Message edited by: vishalraju shah ]
 
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are using ehCache in clustered environment (GlassFish). Our current requirement is fully covered by its performance and provided features.

We use it in asynchronous mode but if you have high rate of changes and high rate of requests which must use latest values then you will need to use synchronous mode replication which will introduce some delay in your response time.

PS, sharing one cache can reduce your network load but introduce a bottleneck and a single point which can bring your system down when it goes down.
 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Take a look at the product Coherence from www.tangosol.com. It is the number one product for distributed/replicated caching

Thanks
Raees
 
Mo-om! You're embarassing me! Can you just read a tiny ad like a normal person?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic