Ravi Sir's Cards › AWS
How do you pick cache TTL?
This interview card answers: How do you pick cache TTL? Balance freshness vs DB load; use shorter TTL for prices, longer for rare-changing catalogs; add jitter. Measure hit ratio and stale-read complaints after changes. Product title TTL 10 minutes ± jitter; cart contents often not cached or very short.
Read card text
What this card says
What it is
Balance freshness vs DB load; use shorter TTL for prices, longer for rare-changing catalogs; add jitter.
TTL jitter
Why it matters
Measure hit ratio and stale-read complaints after changes.
How / example
Product title TTL 10 minutes ± jitter; cart contents often not cached or very short.