Mobile Cache Waterfall 2D: TTL & Stale-While-Revalidate
Interactive 2D simulation of a mobile app's multi-tier cache: memory (L1), disk (L2), and network, with per-tier TTL expiry, LRU eviction and a stale-while-revalidate toggle. Drag and zoom the request-flow lane, watch live L1/L2 occupancy grids, and track hit-rate and latency history.
A mobile app's cache is rarely one thing — it is a small fast memory tier backed by a larger slower disk tier backed by the network, each with its own time-to-live. This simulator issues a live stream of requests against a Zipf-weighted set of items and lets each one fall through memory, then disk, then network exactly as a real client cache would, timing every hop. A stale-while-revalidate toggle shows the difference between silently refreshing an expired entry in the background versus forcing the user to wait on a synchronous network round-trip. A pannable/zoomable flow lane shows every request's path, live grids show exactly which keys occupy L1 and L2 and how close each is to expiry, and a rolling history strip tracks hit-rate and latency over time.
Watch requests fall through a mobile app's memory, disk and network cache tiers in real time on a pannable, zoomable 2D flow lane, with live L1/L2 occupancy grids, per-tier TTL expiry, and a stale-while-revalidate toggle that trades freshness for hidden latency.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install