The same answer, asked again
Change the cache capacity, tTL and hot key share, then run virtual time forward. Every number below is counted by the same deterministic model, so the same settings always give the same result.
Moving dots are a few sampled requests, for orientation only. Queue chips, load and the rejected count come from the engine; the numbers count every request. The cache meter shows the hit ratio. Database busy = work waiting or slow p95; degraded = queue full, so new misses fail.
Changing a control restarts the run at 0 s with the same seed, so runs stay comparable.
Starting the simulation engine…
All counters
- Offered—
- Accepted—
- Rejected—
- Short-circuited—
- Completed—
- Failed—
- Timed out—
- In flight—
- Queued—
- p50 latency—
- p99 latency—
- Latency samples—
- Cache hits—
- Cache misses—
- Cache lookups—
- Evictions (cache full)—
- Expirations (TTL)—
Counts are cumulative since 0 s virtual time. Accounting: offered = accepted + rejected + short-circuited.
What this model assumes
- Illustrative model, not a benchmark: hit ratios and database load depend on the chosen key distribution.
- Reads only. Stale reads are NOT modelled in the lab; the guided story shows staleness.
- No request coalescing: concurrent misses for the same key each send a database request.
- Warm-start entries (coldStart false) are filled at start and all expire together at ttlMs.
- Deterministic periodic arrivals; the cache tier is not capacity-limited in this model.
- A full DB queue fails the request; latency covers completed requests only.
Model cache-aside v1, seed 2026. Simulated by a Rust engine compiled to WebAssembly, running in a Web Worker in your browser; time is virtual, not wall-clock.