Konten utama halaman ini berbahasa Inggris.Terjemahkan halaman ini
Keahlian & teknologi
System Design roadmap
System design is planning how the parts of a large software system fit together: servers, databases, caches, queues and how they handle millions of users and failures. It's essential for senior roles and every backend or architect interview.
- Waktu
- ⏱ 8–10 weeks
- Level
- Advanced
- Steps
- 6 steps
- Progress
- 0/6 done
The roadmap
Click a step to open the full guide.
Best architecture: a scalable web application
The default shape for most large web and mobile backends. Start simpler, and add pieces as load grows.
Reference architecture
- Clients (web, mobile)
- DNS + CDN (static files, edge cache)
- Load balancer / API gateway (TLS, rate limits)
- Stateless app servers (autoscaled)
- Cache (Redis) · Message queue → workers
- Primary database + read replicas · Object storage
- Monitoring, logs, traces
Why it's built this way
- CDN serves static content near users and absorbs traffic.
- Stateless app servers let you add machines freely behind the load balancer.
- Cache removes most database reads for hot data.
- Queue + workers move slow work (emails, video, AI) out of the request path.
- Read replicas scale reads; sharding only when one primary can't keep up.
- Observability everywhere: you can't fix what you can't see.
System Design cheat sheet
The essentials on one screen. Bookmark it for revision.
Numbers to know
| Memory read | ~100 ns |
|---|---|
| SSD read | ~100 µs |
| Same-region network round trip | ~0.5–1 ms |
| Cross-continent round trip | ~100–150 ms |
| Seconds in a day | 86,400 |
| 99.9% / 99.99% uptime | ~8.8 h / ~53 min down per year |
Building block → use
| CDN | Static files, edge caching |
|---|---|
| Load balancer | Spread traffic, health checks |
| Cache | Hot reads, sessions |
| Queue | Async work, spikes |
| Replicas | Read scaling, failover |
| Sharding | Write/storage scaling |
| Object storage | Images, video, backups |
Improve performance
- Cache at every layer: CDN, application cache, database cache.
- Make services stateless and scale horizontally.
- Use async processing for anything not needed in the response.
- Denormalise or precompute for read-heavy paths (feeds, dashboards).
- Measure p95/p99 latency and remove the biggest bottleneck first.
Security checklist
- Authenticate at the gateway; authorise in every service.
- Encrypt in transit (TLS) and at rest.
- Rate limit and protect against abuse/DDoS at the edge.
- Least-privilege access between services; secrets in a vault.
- Audit logs for sensitive actions.
Most important interview questions
Click a question to see a strong answer. Each step also has its own questions.
1How do you scale a database?
Indexes and query tuning first, then caching, read replicas, vertical scaling, and finally sharding/partitioning; choose NoSQL for specific high-scale access patterns.
2Explain the CAP theorem with an example.
During a network partition you choose consistency (reject some requests, e.g. bank balances) or availability (serve possibly stale data, e.g. social likes).
3Monolith vs microservices for a new product?
Usually start with a modular monolith for speed and simplicity; extract services when team or scaling needs justify it.
4How do you design for high availability?
Redundancy across zones, health checks and automatic failover, no single points of failure, graceful degradation, backups and tested recovery.
5Push vs pull for a news feed?
Push (fan-out on write) precomputes feeds for fast reads; pull computes on read. Hybrids push for normal users and pull for celebrities with huge follower counts.
Related roadmap
Software Architect
6 steps · 6–12 months (for experienced developers) · Advanced
Lead technical design across teams and systems.
View roadmap →Backend Developer
6 steps · 5–6 months · Intermediate
Build the APIs, databases and services behind apps.
View roadmap →Cloud Engineer
6 steps · 5–7 months · Intermediate
Design, build and run systems on AWS, Azure or Google Cloud.
View roadmap →DSA (Data Structures & Algorithms)
6 steps · 10–14 weeks · Intermediate
Crack coding interviews and write efficient code.
View roadmap →