Stuff & Things

Home

CDN Cache Simulator

Explore how an LRU cache reduces origin requests, improves response times, and handles content eviction. Powered by Go.

Interactive Edge Cache

Request an object to see whether it's served from the edge cache or the origin server.

Ready. The edge cache has a capacity of 3 objects.

Cached Objects

—

Cache Hits

—

Cache Misses

—

Evictions

—

Cached Objects — LRU Order

Objects on the left are evicted first. Accessing an object moves it to the right.

Least Recently Used Most Recently Used

Cache is empty. Request an object to begin.

Latest Request

Source: —

Latency: —

Content: —

Request History

Content Source Latency
No requests yet.

Cache Workload Simulator

Run 12 predefined requests against a fresh LRU cache and examine how capacity affects performance.

Select a capacity and run the demonstration.

Hit Ratio

—

Origin Requests

—

Evictions

—

Total Time

—

Cache Hit Ratio

Request Timeline

# Content Source Latency
Run a workload to display results.

Explore the Go Implementation

Examine the source code behind our LRU cache, origin simulator, request coalescing, and workload.

LRU Cache — lru.go
Origin Simulator — origin.go
Cache Service — service.go
Demo Workload — workload.go