The Real Fullstack

System Design

Design and stress systems: caching, rate limiting, partitions and resilience.

9 challenges

F31Design a URL ShortenerBillions of redirects, a few writes, unique short codes and click analytics — on a budget.Architecture builderEngineer12 minF32Design a Rate LimiterA “100 requests per minute” limit lets clients through eight times faster than intended.Flow simulatorSenior Engineer10 minF33Design a Notification SystemMillions of e-mails and push messages — sent once, respecting preferences and provider limits.Architecture builderSenior Engineer12 minF34The Cache StampedeEvery 60 seconds the homepage cache expires and 1,600 identical queries hit the database at once.Flow simulatorSenior Engineer9 minF35The Hot PartitionOne mega-seller overloads a single partition while the other 11 sit idle.Performance labSenior Engineer8 minF36The Unavailable ServiceA “nice to have” recommendations widget takes the whole homepage down.Flow simulatorEngineer9 minF71Design a File Upload ServiceUsers upload large files; they must be scanned, thumbnailed and downloaded quickly — without the API carrying the bytes.Architecture builderEngineer12 minF72The Midnight Thundering Herd1.2 million phones sync at exactly midnight, and their retries make it worse.Performance labEngineer8 minF86Design Search AutocompleteSuggestions on every keystroke for millions of users — without LIKE queries on the main database.Architecture builderEngineer12 min