Skip to content

Repository files navigation

System Design Prep

Everything you need to ace the system design interview, in one fully static Next.js app.

Features

  • 25 core topic deep dives - scalability, load balancing, caching, sharding, replication, consistency & CAP, consistent hashing, message queues, event-driven architecture, distributed transactions, fault tolerance, observability, security, probabilistic data structures, and more
  • 28 classic case studies worked end to end (requirements → estimation → API → high-level design → data model → deep dives → rapid implementation → bottlenecks): URL shortener, rate limiter, news feed, chat, video streaming, web crawler, typeahead, notifications, ride sharing, key-value store, cloud storage, payments, Snowflake IDs, distributed cache, Instagram, Google Docs, proximity service, job scheduler, search engine, ticket booking, metrics monitoring, leaderboard, ad click aggregator, message queue, dating app, email, digital wallet, live streaming
  • Rapid implementation guides - every case study ends with a "build the MVP in a weekend" recipe: a concrete budget stack, ordered build steps, and the core algorithm in real TypeScript/Python/SQL
  • Back-of-envelope calculator - DAU and usage assumptions in, QPS / storage / bandwidth / cache-size estimates out
  • 50 flashcards with category filtering, shuffle, and known/review tracking
  • 45-minute interview framework - a four-step arc with timing, scripts, dos and don'ts
  • Glossary (70+ terms) & latency numbers every engineer should know

Performance architecture

The app practices what it preaches (inspired by "50 Million HTTP Requests/Month ($15 Budget)"):

  • 100% static generation - every route, including all dynamic [slug] pages, is prerendered at build time via generateStaticParams with dynamicParams = false. Zero server compute per request; every page is CDN-cacheable at the edge.
  • RSC-first, minimal client JS - only the genuinely interactive pieces (calculator, flashcards, search filter, mobile nav) are client components. Topic and case-study content never ships as JavaScript.
  • Slim client payloads - the topic explorer receives a projection (slug/title/category/summary) instead of full topic objects.
  • Self-hosted fonts via next/font (zero layout shift, no third-party requests), static sitemap.xml and robots.txt.

Stack

Next.js 16 (App Router, Turbopack) · React 19 · TypeScript · Tailwind CSS 4

Development

npm install
npm run dev

Deployment

Deployed on Vercel. Because every route is static, it serves entirely from the edge network - effectively free at almost any traffic level.

About

Everything you need to ace the system design interview: 25 topic deep dives, 12 worked case studies, back-of-envelope calculator, flashcards, and a 45-minute interview framework. Fully static Next.js 16.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages