7 design patterns that explain 80% of the code you'll ever read.
Save this.📌
Singleton
One instance for the whole app.
Logger, config, DB pool.
Factory
Ask by name, get the right object back.
No hardcoded classes in your code.
Builder
Assemble a complex object step by step.
Ends with .build(). Think query builders.
Adapter
Makes incompatible interfaces work together.
Old XML in, new JSON out.
Decorator
Wrap an object to add behaviour.
Core stays untouched. Think middleware.
Observer
Change once, every subscriber is notified.
Event listeners, pub/sub.
Strategy
Swap the algorithm, not the caller.
Payment methods, sorting, routing.
Which one do you use most? 🔖
3
471
🚨 Stop memorizing System Design. Start studying the systems that actually scale.
19 real-world systems to study.
One System Design Metro Map. 🚇
Save this thread. ↓
1/4
Stock Exchange → lnkd.in/eNf2QxVZ
Payment Systems → lnkd.in/ecVw7jfi
YouTube → lnkd.in/e7q9F4Sg
Google Docs → lnkd.in/ehPNA7Az
Kafka → lnkd.in/eTtVAjTg
URL Shortener → lnkd.in/evFTZVQq
⸻
2/4
WhatsApp → lnkd.in/eU2fswMi
Airbnb → lnkd.in/dGVfstQM
Spotify → lnkd.in/eGbWVeNW
Slack → lnkd.in/eATMDjrK
Reddit → lnkd.in/egmm_P7a
Bluesky → lnkd.in/eEhB8V_k
Real systems > theoretical diagrams.
⸻
3/4
Tinder → lnkd.in/en65fv-W
Twitter Timeline → lnkd.in/eniXMPfU
Uber Nearby Drivers → lnkd.in/eeqH9Hjh
Amazon Lambda → lnkd.in/eNd3Z5Yn
Amazon S3 → lnkd.in/e2p7qXri
Study the architecture. Then design it yourself.
⸻
4/4
Apple AirTags → lnkd.in/ec75eiCH
LLMs / ChatGPT → lnkd.in/eSd6fS7n
The goal isn't to memorize these architectures.
It's to understand the trade-offs behind them.
📌 Bookmark this.
♻️ Repost for an engineer preparing for System Design.
🚀 Zero → AI Engineer Roadmap (2026)
Assumes basic ML/DL.
Goal: Learn to build and ship production LLM + agent systems.
1. LLM Internals
Resources:
• Karpathy — Neural Networks: Zero to Hero
• Jay Alammar — The Illustrated Transformer
Build:
• Implement a small GPT from scratch
• Understand attention, KV cache, tokenization, sampling
2. LLM APIs + Tool Calling
Resources:
• Anthropic — Prompt Engineering Guide
• OpenAI / Anthropic API docs
• Medium — LLM Function Calling Explained
Learn:
• Structured outputs
• Function/tool calling
• Streaming
• Retries, rate limits, token usage
Build:
• An API-based LLM application
3. RAG
Resources:
• Simon Willison — Embeddings / RAG
• Pinecone — RAG guides
• Medium — Modern RAG in 2026
• Medium — Reranking for RAG
Learn:
• Chunking
• Embeddings
• Hybrid search
• Reranking
• Metadata filtering
• Citations
• Query rewriting
Build:
• RAG over your own docs/PDFs
4. Evals
Resources:
• Hamel Husain — AI Evals
• Medium — Evaluating RAG Pipelines
Learn:
• Golden datasets
• Retrieval metrics
• LLM-as-judge
• Regression testing
• Failure analysis
Build:
• An eval suite for your RAG system
5. Agents
Resources:
• Anthropic — Building Effective Agents
• Sam Witteveen — Agents / Tool Use
• James Briggs — ReAct / Tool Use
• Medium — From LLMs to Agents
Learn:
• Tool use
• ReAct
• State
• Planning
• Retries
• Failure recovery
• Human-in-the-loop
Build:
• An agent with 3–5 real tools
6. Orchestration
Resources:
• LangGraph documentation
• Anthropic agent engineering articles
Learn:
• State machines
• Workflows vs agents
• Checkpoints
• Persistence
• Durable execution
Build:
• Convert your agent into an explicit stateful workflow
7. Context Engineering
Resources:
• Anthropic — Effective Context Engineering for AI Agents
• Medium — Context Engineering for Agentic Applications
Learn:
• Context selection
• Memory
• Compression
• Progressive disclosure
• Tool descriptions
• Long-context management
Build:
• A context layer for your agent
8. MCP
Resources:
• modelcontextprotocol.io
• Anthropic — MCP
• Medium — MCP Foundations
• Medium — MCP in Production
Build:
• One real MCP server for a tool you use
• Connect it to your agent
9. Inference Engineering
Resources:
• vLLM documentation
• SGLang documentation
• Hugging Face documentation
Learn:
• KV cache
• Batching
• Quantization
• Streaming
• Speculative decoding
• Model routing
Measure:
• TTFT
• Tokens/sec
• p50/p95 latency
• GPU memory
• Cost/request
10. AI Security
Resources:
• OWASP — LLM / GenAI Security
• Google Cloud — AI Security Evaluation
• Medium — AI Agent Security
Learn:
• Prompt injection
• Indirect prompt injection
• Tool poisoning
• Data exfiltration
• Excessive agency
• Authorization
• Sandboxing
11. Production
Learn:
• Observability
• Tracing
• Cost tracking
• Rate limiting
• Caching
• Load testing
• Guardrails
• Failure handling
Track:
• Quality
• Cost/request
• Latency
• Error rate
• Tool failures
• Task success rate
Build 3 projects:
1. Production RAG
2. Tool-using agent
3. Production agent platform
For every project, publish:
• Architecture
• Evaluation methodology
• Results
• Cost
• Latency
• Failure cases
• Tradeoffs
Don't learn 10 frameworks.
Pick one stack and go deep.
Don't build 15 toy chatbots.
Build 3 systems and measure them.
Primary sources > AI roadmap listicles.
Medium is useful for implementation experience. Vendor docs, papers, specs, and engineering blogs should be your source of truth.
Recommended book:
AI Engineering — Chip Huyen
A platform has 500M users.
You type a username and availability appears almost instantly.
No full-table scan. No expensive query.
What is the database actually doing?
41
Your API returns:
ETag: W/"v7"
A client sends:
If-None-Match: "v7"
The resource hasn’t changed.
What status should the API return?
38
Prompt caching has a trap:
Your agent reuses the same 10k-token system prompt, but cache hit rate is terrible.
You changed only the conversation history each turn.
What actually determines whether the cache hits?
34
















