Cache
5 posts
Design Problem: A URL Shortener, from Estimates and Code Generation to Phishing Abuse
System Design series Part 9-1: a URL shortener from estimates; code generation, 301 vs 302, caching, click stats, cross-region lag, STRIDE for phishing and enumeration.
Bloom Filters and HyperLogLog: Trading a Little Error for a Lot of Memory, and What to Do When Someone Games the Estimate
System Design series Part 3-6: Bloom filter error vs capacity, HyperLogLog error and merging, cache penetration, unique visitors, and count inflation via a public hash.
Caching in Depth: Hit Ratio Math, Write-Order Races, Penetration, Breakdown, Avalanche, and Multi-Level Caches
System Design series Part 2-3: hit ratio math, cache-aside write races, penetration, breakdown, avalanche, hot keys, multi-level caches, and evict-after-commit in Spring.
CDNs and HTTP Caching: Cache-Control, Versioned Assets, Edge Caching, and Cache Attacks
System Design series Part 2-4: how CDNs cut latency and origin bandwidth, Cache-Control, ETag and 304, versioned assets, API micro-caching, cache deception and poisoning.
Consistent Hashing: Moving Only 1/N When Nodes Change, Virtual Nodes, Rendezvous Hashing, and Deliberately Chosen Keys
System Design series Part 4-3: key movement and load with hash rings, virtual nodes, and rendezvous hashing, Guava cache routing and work assignment, and crafted keys.