Pathmaker
System Design Fundamentals
Learn to design scalable, reliable software systems. Master the concepts and patterns used by engineers at top tech companies to build systems that handle millions of users.
About This Course
System design is the critical skill for senior engineers and technical leaders. This comprehensive course teaches you how to design large-scale distributed systems from scratch.
You'll learn architectural patterns, scalability strategies, and how to make trade-offs between consistency, availability, and performance. Essential for technical interviews and real-world system building.
What You'll Learn
- 1Design scalable systems that handle millions of users
- 2Make informed trade-offs between consistency, availability, and partition tolerance
- 3Understand distributed system patterns and when to apply them
- 4Architect databases, caching layers, and message queues effectively
- 5Prepare for system design interviews at top tech companies
- 6Debug and optimize production systems
Week by Week
Fundamentals: Scalability & Core Concepts
Build your foundation with core system design concepts. Understand vertical vs horizontal scaling, load balancing, caching, and the fundamental trade-offs in distributed systems.
Explore this week's curriculum
Key concepts
Scalability: A system's ability to handle growing amounts of work by adding resources
Vertical vs Horizontal Scaling: Vertical = bigger machines, Horizontal = more machines working together
Load Balancing: Distributing incoming requests across multiple servers
CAP Theorem: You can only have 2 of 3: Consistency, Availability, Partition tolerance
Studio activities
Design a URL Shortener
Design a simple but scalable URL shortening service like bit.ly from scratch.
- Gather requirements (daily users, URLs per day)
- Calculate storage and bandwidth needs
- Design the API (shorten URL, redirect)
- Choose database schema
- Add caching layer for popular URLs
- Design for high availability
- Handle potential bottlenecks
Success criteria
Complete design with capacity estimates and architecture diagram
Analyze Real System Architectures
Study how major companies like Netflix, Twitter, or Uber architected their systems.
- Find engineering blogs about system architecture
- Diagram their high-level architecture
- Identify scalability patterns they use
- Understand trade-offs they made
- Compare approaches across companies
- Document key learnings
Success criteria
Documented analysis of 3+ real-world system architectures
Reflection
- What surprised you about building systems at scale?
- Which scalability pattern seems most powerful?
- What questions do you have about distributed systems?
Study guidance
- Start with simple architectures before adding complexity
- Always ask about scale requirements first
- Draw diagrams - system design is visual
Discuss with Professor Reed
Choose a question to discuss with Professor Reed. Copy it and paste it into your conversation with him. The copied text includes this week's lesson and assignment; add your own questions or explain where you are stuck.
When should I scale vertically vs horizontally?
How do I estimate system capacity needs?
What are the trade-offs in the CAP theorem?
What surprised you about building systems at scale?
Which scalability pattern seems most powerful?
What questions do you have about distributed systems?
Ask me one question at a time to check my understanding, then explain any gaps.
Help me plan this assignment without doing the work for me.
Data Storage: Databases & Data Modeling
Master database design and selection. Learn when to use SQL vs NoSQL, how to design schemas, and patterns for handling massive amounts of data.
Explore this week's curriculum
Key concepts
SQL vs NoSQL: SQL = structured/relational, NoSQL = flexible/document/key-value/graph
Data Modeling: Designing how data is structured and related in your system
Normalization: Organizing data to reduce redundancy (good for writes, complex for reads)
Denormalization: Duplicating data for faster reads (trade: slower writes, more storage)
Studio activities
Design a Social Media Database
Create database schema for a Twitter-like social network.
- List all entities (users, posts, likes, follows)
- Design relationships between entities
- Create normalized SQL schema
- Identify access patterns (feed, profile, search)
- Optimize for read-heavy operations
- Add indexes for common queries
- Consider denormalization for performance
Success criteria
Complete schema optimized for social media access patterns
SQL vs NoSQL Decision Framework
Build a decision tree for choosing the right database type.
- List characteristics of SQL databases
- List characteristics of NoSQL types
- Define decision criteria (ACID, scale, schema, etc.)
- Create flowchart for database selection
- Apply to 5 different use cases
- Document when each type excels
- Note hybrid approaches
Success criteria
Clear framework for database selection with examples
Reflection
- When would you choose NoSQL over SQL?
- How do access patterns influence database design?
- What trade-offs matter most for your use cases?
Study guidance
- Choose databases based on access patterns, not just data structure
- Plan for read vs write heavy workloads differently
- Consider eventual consistency for better performance
Discuss with Professor Reed
Choose a question to discuss with Professor Reed. Copy it and paste it into your conversation with him. The copied text includes this week's lesson and assignment; add your own questions or explain where you are stuck.
How do I choose between SQL and NoSQL?
What database is best for different use cases?
How do I handle database scaling?
When would you choose NoSQL over SQL?
How do access patterns influence database design?
What trade-offs matter most for your use cases?
Ask me one question at a time to check my understanding, then explain any gaps.
Help me plan this assignment without doing the work for me.
Caching Strategies & Content Delivery
Learn caching patterns that dramatically improve performance. Understand CDNs, cache invalidation, and distributed caching systems.
Explore this week's curriculum
Key concepts
Cache Hit/Miss: Hit = data found in cache, Miss = need to fetch from database
Cache Invalidation: Removing or updating stale data from cache - 'one of the hardest problems in CS'
CDN (Content Delivery Network): Distributed servers that cache content close to users geographically
Cache-Aside Pattern: Application checks cache first, then database, then populates cache
Studio activities
Add Caching to URL Shortener
Enhance your Week 1 URL shortener with a comprehensive caching strategy.
- Identify cacheable data (popular URLs)
- Choose cache technology (Redis, Memcached)
- Design cache-aside pattern implementation
- Set TTL policies for different data types
- Handle cache invalidation on updates
- Add cache warming for popular URLs
- Implement cache eviction policies
Success criteria
Caching strategy that reduces database load by 80%+
CDN Cost-Benefit Analysis
Analyze when adding a CDN makes sense for different applications.
- Calculate bandwidth costs without CDN
- Estimate CDN costs for same traffic
- Measure latency improvement by geography
- Calculate cache hit ratio potential
- Compare total cost of ownership
- Identify breaking point for CDN adoption
- Document decision framework
Success criteria
Clear analysis of when CDNs provide ROI
Reflection
- How much performance improvement can caching provide?
- What are the hardest parts of cache invalidation?
- When does caching complexity not justify the benefits?
Study guidance
- Cache reads, not writes
- Set appropriate TTLs based on data freshness needs
- Monitor cache hit rates to optimize
Discuss with Professor Reed
Choose a question to discuss with Professor Reed. Copy it and paste it into your conversation with him. The copied text includes this week's lesson and assignment; add your own questions or explain where you are stuck.
What should I cache and what shouldn't I cache?
How do I handle cache invalidation?
When is a CDN worth the complexity?
How much performance improvement can caching provide?
What are the hardest parts of cache invalidation?
When does caching complexity not justify the benefits?
Ask me one question at a time to check my understanding, then explain any gaps.
Help me plan this assignment without doing the work for me.
Message Queues & Asynchronous Processing
Learn to decouple systems with message queues. Understand pub/sub patterns, event-driven architecture, and handling asynchronous workflows.
Explore this week's curriculum
Key concepts
Message Queue: Buffer that stores messages between services, enabling asynchronous communication
Pub/Sub Pattern: Publishers send messages to topics; subscribers receive messages from topics they're interested in
Event-Driven Architecture: Systems that react to events rather than making direct synchronous calls
Idempotency: Operations that can be repeated safely without changing the result
Studio activities
Design an Email Sending System
Build a scalable asynchronous email delivery system using message queues.
- Design API for sending emails
- Add message queue between API and workers
- Implement worker processes to send emails
- Handle retries for failures
- Add dead letter queue for permanent failures
- Implement rate limiting
- Monitor queue depth and processing time
Success criteria
Queue-based system that handles 10K+ emails/minute reliably
Event-Driven E-commerce System
Design event flows for an e-commerce platform (order placed, payment, shipping, etc.).
- Map all events in order lifecycle
- Design event schema and topics
- Identify subscribers for each event
- Handle event ordering and dependencies
- Design for eventual consistency
- Add event sourcing for order history
- Plan rollback scenarios
Success criteria
Complete event-driven architecture diagram with failure handling
Reflection
- How do message queues improve system resilience?
- What challenges come with asynchronous processing?
- When is eventual consistency acceptable?
Study guidance
- Use queues to handle traffic spikes gracefully
- Always design for message delivery failures
- Make message processing idempotent
Discuss with Professor Reed
Choose a question to discuss with Professor Reed. Copy it and paste it into your conversation with him. The copied text includes this week's lesson and assignment; add your own questions or explain where you are stuck.
When should I use message queues vs direct API calls?
How do I handle message failures and retries?
What are best practices for event-driven systems?
How do message queues improve system resilience?
What challenges come with asynchronous processing?
When is eventual consistency acceptable?
Ask me one question at a time to check my understanding, then explain any gaps.
Help me plan this assignment without doing the work for me.
Microservices & Service-Oriented Architecture
Understand microservices architecture: when to use it, how to decompose monoliths, and patterns for inter-service communication.
Explore this week's curriculum
Key concepts
Microservices: Architectural style where applications are composed of small, independent services
Service Boundaries: How to divide functionality into separate services
API Gateway: Single entry point that routes requests to appropriate microservices
Service Discovery: How services find and communicate with each other dynamically
Studio activities
Split a Monolith
Take a monolithic e-commerce application and decompose it into microservices.
- Identify bounded contexts in the monolith
- Define service boundaries (user, product, order, payment)
- Design service APIs and contracts
- Plan data migration strategy
- Choose inter-service communication (REST, gRPC, events)
- Handle distributed transactions
- Design monitoring and debugging approach
Success criteria
Complete microservices architecture with clear service boundaries
Microservices Decision Matrix
Create a framework for deciding when to adopt microservices.
- List benefits of microservices
- List drawbacks and complexity
- Identify team size/skill requirements
- Define organizational readiness factors
- Create decision criteria
- Apply to different scenarios
- Document when monolith is better
Success criteria
Clear decision framework with real-world examples
Reflection
- Are microservices worth the operational complexity?
- How do you handle cross-service transactions?
- What's your default architectural choice and why?
Study guidance
- Start with a monolith, split into services when needed
- Services should align with business capabilities
- Accept the operational complexity of microservices
Discuss with Professor Reed
Choose a question to discuss with Professor Reed. Copy it and paste it into your conversation with him. The copied text includes this week's lesson and assignment; add your own questions or explain where you are stuck.
When should I use microservices vs a monolith?
How do I decompose a monolith into services?
What are the biggest challenges with microservices?
Are microservices worth the operational complexity?
How do you handle cross-service transactions?
What's your default architectural choice and why?
Ask me one question at a time to check my understanding, then explain any gaps.
Help me plan this assignment without doing the work for me.
Reliability, Monitoring & Observability
Learn to build systems that stay up. Master monitoring, logging, alerting, and debugging distributed systems in production.
Explore this week's curriculum
Key concepts
SLA/SLO/SLI: Service Level Agreement/Objective/Indicator - measuring and promising uptime
Observability: Understanding system state from external outputs (logs, metrics, traces)
Circuit Breaker: Pattern that prevents cascading failures by stopping calls to failing services
Chaos Engineering: Intentionally breaking systems to test resilience
Studio activities
Build a Monitoring Strategy
Design comprehensive monitoring for a multi-service application.
- Define SLOs for each service
- Identify key metrics (latency, error rate, saturation)
- Design logging strategy and structure
- Implement distributed tracing
- Create dashboards for each service
- Set up alerting rules
- Test alerts with simulated failures
Success criteria
Complete monitoring setup that catches real issues
Failure Handling Patterns
Implement common reliability patterns in a sample system.
- Add circuit breakers to API calls
- Implement retry logic with exponential backoff
- Add timeouts to all external calls
- Create fallback responses for failures
- Implement health checks
- Add rate limiting
- Test each pattern under load
Success criteria
System that gracefully handles various failure modes
Reflection
- How do you balance reliability with feature velocity?
- What's the most valuable monitoring insight you gained?
- How would you improve system reliability?
Study guidance
- Monitor symptoms (user-facing), not just causes
- Alert on things that need action, not everything
- Build dashboards for debugging, not just pretty graphs
Discuss with Professor Reed
Choose a question to discuss with Professor Reed. Copy it and paste it into your conversation with him. The copied text includes this week's lesson and assignment; add your own questions or explain where you are stuck.
What should I monitor in my systems?
How do I debug issues in distributed systems?
What makes a good alert vs alert fatigue?
How do you balance reliability with feature velocity?
What's the most valuable monitoring insight you gained?
How would you improve system reliability?
Ask me one question at a time to check my understanding, then explain any gaps.
Help me plan this assignment without doing the work for me.
Security, Authentication & Authorization
Build secure systems from the ground up. Learn authentication patterns, authorization strategies, and security best practices.
Explore this week's curriculum
Key concepts
Authentication: Verifying who the user is (login)
Authorization: Determining what the user can access (permissions)
OAuth 2.0: Standard protocol for delegated authorization (Sign in with Google)
JWT (JSON Web Token): Stateless authentication token that contains user information
Studio activities
Design Authentication System
Build a secure authentication and authorization system for a multi-tenant SaaS app.
- Choose authentication method (session vs JWT)
- Design user registration and login flow
- Implement password hashing (bcrypt)
- Add OAuth for social login
- Design role-based access control
- Implement API authentication
- Add rate limiting to prevent abuse
- Security audit your design
Success criteria
Secure authentication system following OWASP guidelines
Security Threat Analysis
Identify and mitigate security threats in your system designs.
- List all entry points to your system
- Identify potential threats (OWASP Top 10)
- Assess risk for each threat
- Design mitigations
- Implement security controls
- Plan incident response
- Document security architecture
Success criteria
Comprehensive threat model with mitigations
Reflection
- What security vulnerabilities are most common?
- How do you balance security with user experience?
- What security patterns will you always use?
Study guidance
- Never roll your own crypto
- Assume every input is malicious
- Security is about layers, not single solutions
Discuss with Professor Reed
Choose a question to discuss with Professor Reed. Copy it and paste it into your conversation with him. The copied text includes this week's lesson and assignment; add your own questions or explain where you are stuck.
How do I implement secure authentication?
What's the difference between OAuth and JWT?
How do I secure APIs and microservices?
What security vulnerabilities are most common?
How do you balance security with user experience?
What security patterns will you always use?
Ask me one question at a time to check my understanding, then explain any gaps.
Help me plan this assignment without doing the work for me.
Interview Prep & System Design Practice
Put everything together with full system design practice. Prepare for interviews and learn to communicate your designs effectively.
Explore this week's curriculum
Key concepts
Requirements Gathering: Asking the right questions to understand what you're building
Capacity Planning: Estimating resources needed based on scale
Trade-off Analysis: Evaluating different approaches and making informed decisions
Design Communication: Explaining your design clearly to others
Studio activities
Classic System Design Problems
Practice designing classic interview systems with full documentation.
- Design Instagram/photo sharing
- Design Netflix/video streaming
- Design Uber/ride sharing
- Design WhatsApp/messaging
- Design Twitter/social feed
- Time yourself (45 min each)
- Get feedback from peers
Success criteria
Complete designs for all 5 systems with clear trade-offs
Design Your Dream System
Design a complete system from scratch incorporating everything you've learned.
- Choose a system you want to build
- Define requirements and scale
- Design high-level architecture
- Choose databases and storage
- Add caching and CDN
- Design for reliability and monitoring
- Include security and authentication
- Create complete documentation
- Present your design
Success criteria
Production-ready system design with complete documentation
Reflection
- How has your approach to system design evolved?
- What patterns do you reach for first?
- What areas do you want to deepen further?
Study guidance
- Always start with requirements and constraints
- Think out loud during interviews
- Draw diagrams as you explain
Discuss with Professor Reed
Choose a question to discuss with Professor Reed. Copy it and paste it into your conversation with him. The copied text includes this week's lesson and assignment; add your own questions or explain where you are stuck.
How do I approach a system design interview?
What questions should I ask first?
How do I handle questions I don't know?
How has your approach to system design evolved?
What patterns do you reach for first?
What areas do you want to deepen further?
Ask me one question at a time to check my understanding, then explain any gaps.
Help me plan this assignment without doing the work for me.
Topics Covered
More in This Track
Designing for Delegated Experiences
Design how people entrust decisions and actions to people, services, and agents.
Algorithms and the Online Experience
Investigate how ranking, recommendation, advertising, and moderation mediate everyday online life.
Design, Technology, and AI Systems
How designers can understand AI products, software ecosystems, automation, interfaces, and workflow tools — without becoming purely technical.
Ready to begin?
Start your personalized curriculum today — free to try, no credit card needed.