Pathmaker

TemplatesSystem Design Fundamentals
intermediate
Technical Systems
technical

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.

8 weeks
8 hrs/week
64 total hours

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

  • 1
    Design scalable systems that handle millions of users
  • 2
    Make informed trade-offs between consistency, availability, and partition tolerance
  • 3
    Understand distributed system patterns and when to apply them
  • 4
    Architect databases, caching layers, and message queues effectively
  • 5
    Prepare for system design interviews at top tech companies
  • 6
    Debug and optimize production systems

Week by Week

1

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.

  1. Gather requirements (daily users, URLs per day)
  2. Calculate storage and bandwidth needs
  3. Design the API (shorten URL, redirect)
  4. Choose database schema
  5. Add caching layer for popular URLs
  6. Design for high availability
  7. 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.

  1. Find engineering blogs about system architecture
  2. Diagram their high-level architecture
  3. Identify scalability patterns they use
  4. Understand trade-offs they made
  5. Compare approaches across companies
  6. 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.

8 hrs
2

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.

  1. List all entities (users, posts, likes, follows)
  2. Design relationships between entities
  3. Create normalized SQL schema
  4. Identify access patterns (feed, profile, search)
  5. Optimize for read-heavy operations
  6. Add indexes for common queries
  7. 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.

  1. List characteristics of SQL databases
  2. List characteristics of NoSQL types
  3. Define decision criteria (ACID, scale, schema, etc.)
  4. Create flowchart for database selection
  5. Apply to 5 different use cases
  6. Document when each type excels
  7. 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.

8 hrs
3

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.

  1. Identify cacheable data (popular URLs)
  2. Choose cache technology (Redis, Memcached)
  3. Design cache-aside pattern implementation
  4. Set TTL policies for different data types
  5. Handle cache invalidation on updates
  6. Add cache warming for popular URLs
  7. 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.

  1. Calculate bandwidth costs without CDN
  2. Estimate CDN costs for same traffic
  3. Measure latency improvement by geography
  4. Calculate cache hit ratio potential
  5. Compare total cost of ownership
  6. Identify breaking point for CDN adoption
  7. 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.

8 hrs
4

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.

  1. Design API for sending emails
  2. Add message queue between API and workers
  3. Implement worker processes to send emails
  4. Handle retries for failures
  5. Add dead letter queue for permanent failures
  6. Implement rate limiting
  7. 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.).

  1. Map all events in order lifecycle
  2. Design event schema and topics
  3. Identify subscribers for each event
  4. Handle event ordering and dependencies
  5. Design for eventual consistency
  6. Add event sourcing for order history
  7. 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.

8 hrs
5

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.

  1. Identify bounded contexts in the monolith
  2. Define service boundaries (user, product, order, payment)
  3. Design service APIs and contracts
  4. Plan data migration strategy
  5. Choose inter-service communication (REST, gRPC, events)
  6. Handle distributed transactions
  7. 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.

  1. List benefits of microservices
  2. List drawbacks and complexity
  3. Identify team size/skill requirements
  4. Define organizational readiness factors
  5. Create decision criteria
  6. Apply to different scenarios
  7. 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.

8 hrs
6

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.

  1. Define SLOs for each service
  2. Identify key metrics (latency, error rate, saturation)
  3. Design logging strategy and structure
  4. Implement distributed tracing
  5. Create dashboards for each service
  6. Set up alerting rules
  7. 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.

  1. Add circuit breakers to API calls
  2. Implement retry logic with exponential backoff
  3. Add timeouts to all external calls
  4. Create fallback responses for failures
  5. Implement health checks
  6. Add rate limiting
  7. 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.

8 hrs
7

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.

  1. Choose authentication method (session vs JWT)
  2. Design user registration and login flow
  3. Implement password hashing (bcrypt)
  4. Add OAuth for social login
  5. Design role-based access control
  6. Implement API authentication
  7. Add rate limiting to prevent abuse
  8. Security audit your design
Success criteria

Secure authentication system following OWASP guidelines

Security Threat Analysis

Identify and mitigate security threats in your system designs.

  1. List all entry points to your system
  2. Identify potential threats (OWASP Top 10)
  3. Assess risk for each threat
  4. Design mitigations
  5. Implement security controls
  6. Plan incident response
  7. 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.

8 hrs
8

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.

  1. Design Instagram/photo sharing
  2. Design Netflix/video streaming
  3. Design Uber/ride sharing
  4. Design WhatsApp/messaging
  5. Design Twitter/social feed
  6. Time yourself (45 min each)
  7. 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.

  1. Choose a system you want to build
  2. Define requirements and scale
  3. Design high-level architecture
  4. Choose databases and storage
  5. Add caching and CDN
  6. Design for reliability and monitoring
  7. Include security and authentication
  8. Create complete documentation
  9. 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.

8 hrs

Topics Covered

system design
architecture
scalability
distributed systems
interviews

More in This Track

Ready to begin?

Start your personalized curriculum today — free to try, no credit card needed.