So, when should you be aggressive with caching versus when should you go for lazy loading?
Oriana Vargas
·1955 views
hey everyone, been wrestling with a caching strategy for a new service. weve got a lot of read-heavy data that doesnt change too often, but also some user-specific data that can update frequently. im torn between pre-populating caches (aggressive caching) for common data to reduce latency, versus just loading data from the source when requested and caching it then (lazy loading). what are your thoughts on when one approach makes more sense than the other, especially when you consider potential cache stampedes or stale data issues?
25 comments