4 ms·
How do you invalidate your cache? Is it complicated? What about search queries with many filters? What about responses that are unique per user? What about comm
by jitl 3y ago
How do you invalidate your cache? Is it complicated? What about search queries with many filters? What about responses that are unique per user? What about common queries that are shared between multiple views, do you constantly re-run those as your response cache is invalidated?
- marceloaltmann 3y agoCaches are never invalidated. Readyset uses CDC to receive updates from PostgreSQL/MySQL and update the cache entries. No invalidation required. The price you pay is eventually consistent data, which is already true if you use any async replication like readyset does.
- jitl 3y agoThat’s how ReadySet works, I’m asking the grandparent (rhetorically) how their own method of caching works for them