Caching & Performance
Jan 27, 2026The Cache Hierarchy: Performance Is Which Layer You Actually Hit
L1 is 1ns, L2 is 4ns, L3 is 10ns, RAM is 100ns, local Redis is 1ms, remote Redis is 5ms, a database call is 50ms, cross-region is over 100ms. Every layer is 10 to 100x slower than the one above. Optimize at the layer that moves the metric.