Fresh DB Cache is eventually consistent database cache for Java
- Create in your DB “table of changes” and use triggers to fill it whenever cached entity is added/updated/deleted
- FreshDbCache starts by loading all entities. Then pings for new changes each 500ms, updates entities and keeps eventually consistent replica in web server
- By implementing simple interface it’s upon you to sort entities exactly as you need them (in the most effective way)
- You end up with concurrent collections of POJOs. Have fun with writing programmatic queries in Java
- Super-Lightweight library with dependency only on spring