Posts

Showing posts with the label Cache

Quick Refresh: Cache using EhCache, Spring and Hibernate

Image
Introduction to Cache: ¡    What is Cache? }    A store of things that will be required in future and can be retrieved rapidly. ¡    Why Cache makes application fast? }    Locality of reference – retrieval of data is fast because it is in memory. }    80:20 Rule – If 20% of object are used 80% of the time and a way can be found to reduce the cost of obtaining that 20%, then system performance will improve. }    Less number of system-of-records calls. }      ¡    How Cache Works? }    Application code consult the cache first }    If cache contains the data, then return the data directly }    Otherwise, the application code must fetch the data from the system-of-record, store the data in cache, then return. ¡    Since 2003. EHCache is a modern, modular family of caching tools ¡    The most widely used Java platform Cache ...