Skip to content

A Change-Data-Capture use-case: designing an evergreen cache

Photo of Kseniya Romanova
Hosted By
Kseniya R. and Courtney R.
A Change-Data-Capture use-case: designing an evergreen cache

Details

About the talk:
When one’s app is challenged with poor performances, it’s easy to set up a cache in front of one’s SQL database. It doesn’t fix the root cause (e.g. bad schema design, bad SQL query, etc.) but it gets the job done. If the app is the only component that writes to the underlying database, it’s a no-brainer to update the cache accordingly, so the cache is always up-to-date with the data in the database.

Things start to go sour when the app is not the only component writing to the DB. Among other sources of writes, there are batches, other apps (shared databases exist, unfortunately), etc. One might think about a couple of ways to keep data in sync i.e. polling the DB every now and then, DB triggers, etc. Unfortunately, they all have issues that make them unreliable and/or fragile.

In this talk, Nicolas will describe an easy-to-setup architecture that leverages CDC to have an evergreen cache.

About Nicolas Frankel:
Developer Advocate with 15+ years experience consulting for many different customers, in a wide range of contexts (such as telecoms, banking, insurances, large retail and public sector). Usually working on Java/Java EE and Spring technologies, but with focused interests like Rich Internet Applications, Testing, CI/CD and DevOps. Currently working for Hazelcast. Also double as a teacher in universities and higher education schools, a trainer and triples as a book author.

Twitter: @nicolas_frankel
Blog: https://blog.frankel.ch

Photo of London In-Memory Computing Meetup group
London In-Memory Computing Meetup
See more events