liveBook · Manning

Cache invalidation

As explained in Amazon Web Services in Action, Third Edition: An in-depth guide to AWS

Cache invalidation is the removal or marking of cached data as unusable when its underlying source has changed.

Cache invalidation removes or marks cached data as unusable after the underlying data changes. section 16.2.2

In a blog-post creation workflow, invalidate the cache after creating the database record so later reads do not rely on changed data. This step belongs between database insertion and publishing the post link. section 16.2.2

A retry-safe blog-post operation proceeds in this order:

How Amazon Web Services in Action, Third Edition: An in-depth guide to AWS covers it

How deep it goes
Places invalidation in a three-step workflow but does not detail its implementation.
Examples
Uses creating a blog post, invalidating its cache, and posting its link to Twitter.
What you can do after
Apply it by invalidating cached blog data after successfully changing the database.
How it connects
Connects cache invalidation with idempotence, retries, databases, and fault tolerance.

Also explained in

Compare how 2 books explain cache invalidation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Amazon Web Services in Action, Third Edition: An in-depth guide to AWS. The section links point to the parts of the book it draws on.