Book Review: "Instant Effective Caching with Ehcache" by Daniel Wind
The Performance Zone is presented by AppDynamics. Scalability and better performance are constant concerns for the developer and operations manager. Try AppDynamics' fully-featured performance tool for Java, .NET, PHP, & Node.js.
Recently, I had a chance to review the book "Instant Effective Caching with Ehcache" by Daniel Wind. Honestly, I do think the book justifies its title very well: constructed as a set of various recipes, it guides you step-by-step through typical scenarios by providing brief explanations along with small code snippets, clear enough to serve as a starting point (most recipes also have references to relevant sections of EhCache documentation).
If you have ever worked with EhCache, many recipes would look very familiar to you. But for a newbie or even intermediate developer, it might be very interesting to see:
- how to configure EhCache either programmatically or by using XML
- how to integrate EhCache with Spring Framework and/or Hibernate
- how to use EhCache search capabilities
- how to subscribe to cache events
- how to handle cache errors
More advanced examples include:
- distributed caching using EhCache server or Terracotta Server Array
- basic support for transactions (including JTA)