Read this first: this lists public resources and my own understanding only, not any company's practice; resources date, so check the review date.

I'm still learning system design too. This page keeps the public resources and ideas I've found useful. For hands-on practice, start with the system-design exercises: a feed, a RAG knowledge base, or an assistant with memory.

There is no fixed formula

In my experience, there is no system-design template you can memorize and apply unchanged. A design has to explain two things: the trade-offs behind each choice and how the parts work together as a complete system.

So start from the basics:

  1. What problem are we solving? What does success look like?
  2. What data do we have? What data do we not have?
  3. What are the constraints — scale, latency, cost, freshness?
  4. For each step, what does this choice give up?

An example: recommendation

Say you are building recommendations. Start from what you have:

  • If follows, friendships, or interactions are available, use those relationships to find candidates. A graph need not be a social graph: PinSage uses Pinterest's item–board relationships. Keep these different data structures distinct.
  • And if there is no relationship data? Fall back to behavior itself: item–item co-occurrence, two-tower retrieval, content features (titles, categories, multimodal embeddings). In cold start, content features and a popularity fallback often beat a complicated model.

Each subsequent layer involves trade-offs: how fast retrieval has to be, how large a model the ranking stage can afford, how fresh the features must be, whether an offline gain will show up online, and whether the complexity is worth maintaining. Explaining these choices is more useful than reciting an architecture diagram.

Public resources

General system design:

ML and recommendation: