Free · 13-page PDF
12 system design cheat sheets. One page each.
The decisions, the numbers and the Java you need for caching, databases, queues, rate limits and more. Made for working backend developers.
- ✓ From the makers of Udemy courses with 15,000+ students
- ✓ Prints on A4
- ✓ Java and Spring Boot snippets
Twelve decisions you make in every design.
01 Design any system in 6 steps
A fixed order for any design discussion, and what to say at each step
02 Numbers for capacity estimates
Latency, traffic and storage sums you can do in your head, with a worked URL shortener
03 Caching with Redis
Cache-aside, what to do on writes, eviction and expiry
04 Choosing a database
Postgres, MongoDB, Cassandra and Redis side by side, and how to pick from the query
05 Replication and consistency
Leaders and followers, lag, quorums and failover
06 Sharding and hot keys
When to shard, how to choose the key, and what to do when one key takes all the traffic
07 Consistent hashing
Why modulo breaks, the ring, virtual nodes, and a ring in ten lines of Java
08 Message queues: Kafka vs RabbitMQ vs SQS
What happens to a message after it is read, and which tool to pick
09 Rate limiting
Four algorithms, where to enforce them, and a token bucket in Spring Boot
10 Timeouts, retries and circuit breakers
Four habits that stop one slow service taking the rest down
11 Real-time updates
Polling, SSE, WebSocket and webhooks, and when each fits
12 REST vs gRPC vs GraphQL
Which API style for which caller
For you if
You build backends, have shipped at least one API, and want the trade-offs on one page instead of across twenty tabs.
Why it is free
We make KB Pro, a practice app where you write your own design answer and get it graded. The sheets are the reference. KB Pro is the practice. Take the sheets either way.
Questions
- Is it really free?
- Yes. Your email address is the only thing we ask for.
- What do I get?
- One PDF with 13 A4 pages: a cover and 12 sheets.
- Is it Java only?
- The ideas apply to any language. The code snippets are Java and Spring Boot.
- Can I share it?
- Yes. Share this page rather than the file, so people get the newest version.