Louis Jacomet
From Terracotta/Software AG
Louis Jacomet has been perfecting his knowledge of Java for more than 10 years. Always a developer at heart, his role evolved over the last years to include technical team leading, coaching and some management. In addition to the bits and bytes, Louis is interested in people management skills mandatory to create a productive project team. To complete the buzzword bingo, Louis is interested in agile practices for the visibility, communication and result orientation it promotes. Louis works remotely from Belgium for Terracotta, with a focus on Ehcache.
Data consistency: Analyse, understand and decide
Most applications handle some form of data. And quickly you end up duplicating this data … whether going from a JPA entity to a DTO, offering a caching layer on top of your services or even because the database is replicated and clustered.
As soon as there is duplication, there is a risk of inconsistency. How long is my DTO meaningful? How do I invalidate my cache? What happens if asynchronous data replication fails?
Answering these questions quickly becomes extremely complicated and most often requires a final decision be made at the application level.
By illustrating these concepts using the resilience strategy developed for Ehcache 3, we will see that even for libraries targeted at handling data consistency in the face of failure, only the application may know the answer.
Handling these issues from day one, during design and architecture, is a major concern. And after all, isn’t the easy path quite boring?
Ehcache out of his Element
Ehcache 3 offers major API changes. Apart from the JSR-107 compatibility, everything has been updated to make it a library convenient to use while offering advanced configuration options.
And one of the major changes is the removal of the Element
!
Starting from JSR-107 support in well-known frameworks like Spring, we will show how easy it is to integrate Ehcache 3 in your application.
From there, simply through configuration, you will see how to leverage the additional features that Ehcache brings. It will allow us to demonstrate the patterns used in Ehcache 3 to simplify it.
And to finish, we will look at the mandatory XML which allows to break all compile time dependency on Ehcache 3 in a JSR-107 context while leveraging the extra features.