URL Shortener
Easy · system design problem
A read-heavy redirect service loses its cache. Watch the database melt.
You run a bit.ly-style service doing ~8k redirects/s (95% reads). Redirect lookups are served from Redis using the cache-aside pattern; misses and all writes go to a single PostgreSQL primary. The on-call pager is quiet… for now.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.