I am trying to improve performance of my application.
The problem we are facing right now is with EH Cahe 1.4.1. Whenever it tries to refresh data from DB. If the Db is slow the whole application gets locked down.
Considering ver 2.4.2 of ehcache which has many improvements obviously, I can see a new parameter 'clearOnFlush'. Just wanted to know if this can help me solve the problem.
Also I am considering changing the strategy used while refreshing data, concurrency-strategy. would be great if someone can suggest which one shall apply here.
Information is not quite clear on net.
SCJP 1.5 (93%), SCWCD 1.5 (95%)
Joined: Jul 18, 2011
We built a mechanism in my previous project.
It was a high performance web application (website) of a big airline company hosting their enterprise content site.
We use ehcache internally to cache the objects / even HTML fragments for faster rendering.
Static Content (HTML), we cache it indefinitely and ensure that the cache is flushed by the Content Management Server responsible to publish content. It creates a JMS message and pushes the message into a TOPIC configured within WebLogic App Server. Within the application there is generic Cache listener which listens to the topic and receive the message and acts accordingly.
Since the app is deployed in a cluster all cluster nodes receive the message from the topic.