Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

Who writes the cache?

This comparison card contrasts Who writes the cache. Cache-aside: App reads DB on miss, then fills cache. Write-through: App writes DB and cache together on update. The card pairs Cache-aside with most web read paths, and Write-through with when stale cache is costly.

Who writes the cache?: Cache-aside vs Write-through
Who writes the cache? · Download PNG
Read card text

What this card says

Who writes the cache?

Cache-aside

App reads DB on miss, then fills cache.

Write-through

App writes DB and cache together on update.

Key points

Product catalog reads.

Strictly fresh profile fields.

Example

get→miss→DB→SET / write DB + SET same request

Use when

Most web read paths.

When stale cache is costly.

See all AWS revision cards