Caching strategies - Amazon ElastiCache thumbnail
Caching strategies - Amazon ElastiCache
docs.aws.amazon.com
Lazy loading allows for stale data but doesn't fail with empty nodes. Write-through ensures that data is always fresh, but can fail with empty nodes and can populate the cache with superfluous data. By adding a time to live (TTL) value to each write, you can have the advantages of each strategy. At
2 Users
0 Comments
39 Highlights
39 Notes

Top Highlights

  • Lazy loading allows for stale data but doesn't fail with empty nodes. Write-through ensures that data is always fresh, but can fail with empty nodes and can populate the cache with superfluous data. By adding a time to live (TTL) value to each write, you can have the advantages of each strategy. At the same time, you can and largely avoid clutterin...
  • The write-through strategy adds data or updates data in the cache whenever data is written to the database.
  • If data is written to the cache only when there is a cache miss, data in the cache can become stale. This result occurs because there are no updates to the cache when data is changed in the database. To address this issue, you can use the Write-through and Adding TTL strategies.
  • As the name implies, lazy loading is a caching strategy that loads data into the cache only when necessary. It works as described following.
  • aching strategies

Ready to highlight and find good content?

Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.