Tree Hash Function Read Request Processor Write Request Processor SQL Database Key-Value Store Cachematic Code Annotations Serialization Function Cachematic Architecture
cached val else: query DB save to val to cache Cache Management Algorithm If Write: decide which tables / columns / rows are touched foreach cached result: check for invalidation (hierarchically) write update to DB parse DB statement process based on statement type (query or write)
Dependency Tree Hash Function Read Request Processor Write Request Processor SQL Database Key-Value Store Cachematic Code Annotations Serialization Function pyparsing Open Source release planned
rate / performance for read requests? Yes (by about a factor of 1.6 in our test setup) • But: significant overhead in write requests To some extent engineering limitation Needs to be improved for OSS release
Improves cache hit rate and read performance (w.r.t. manual cache management solution) However: negative impact on write requests Although acceptable for Bison, Cachematic is not (yet) a general solution for all applications