
In this lesson, you'll discover why building an application for 30 users is completely different from building one for millions. We'll explore how growing systems introduce new challenges, why simple architectures eventually reach their limits, and how system design helps engineers build scalable, reliable applications.
In this lesson, you'll learn the difference between functional and non-functional requirements, the key questions to ask before making architectural decisions, and how factors like scalability, performance, availability, reliability, and budget influence system design.
In this lesson, you'll learn how to identify key system requirements, including expected users, read and write workloads, data durability, latency, availability, and budget.
In this lesson, you'll learn the fundamentals of networking and explore essential protocols like IP, TCP, UDP, HTTP, and HTTPS. You'll understand how data travels between clients and servers, how reliable communication works, and when to use different protocols.
You'll also discover the key layers of the OSI model and how networking protocols work together to power modern applications.
In this lesson, you'll follow the complete journey of a request from the browser to the server and back. You'll learn how DNS resolves domain names, how TCP connections are established, how ports direct requests to the correct application, and how servers process and respond to HTTP requests.
Review the essential foundations of system design with this practical cheat sheet!
This resource summarizes functional and non-functional requirements, key questions to ask before designing a system, and the fundamentals of client-server architecture.
You'll also find clear explanations of networking protocols (IP, TCP, UDP, HTTP, HTTPS), DNS, ports, and the complete journey of a web request, along with diagrams, examples, and useful references to reinforce your understanding.
In this lesson, you'll explore three key characteristics of distributed systems: scalability, efficiency, and availability. You'll learn how vertical and horizontal scaling work, identify common scalability bottlenecks, and understand the difference between latency and throughput.
You'll also discover how availability is measured using the number of nines, why minimizing downtime matters, and how architectural decisions involve trade-offs between performance, reliability, and cost.
In this lesson, you'll learn how load balancers distribute traffic across multiple servers to improve scalability, performance, and availability. You'll explore Layer 4 vs. Layer 7 load balancing, different types of load balancers, and popular routing algorithms like Round Robin, Weighted Round Robin, Least Connections, and Least Response Time.
You'll also discover how health checks, dynamic scaling, and failover help keep applications running smoothly, even when traffic spikes or servers fail.
In this lesson, you'll discover how horizontal scaling introduces session management challenges and why storing user sessions directly on application servers can cause problems.
You'll explore two common solutions: sticky sessions and stateless servers, understand their trade-offs, and learn how shared external storage allows any server to handle any request.
You'll also discover why stateless architecture makes applications easier to scale, maintain, and recover from server failures.
Review the key concepts of distributed systems and scalability with this practical cheat sheet!
This resource summarizes availability targets and downtime calculations, load balancing strategies, Layer 4 vs. Layer 7 routing, and the differences between stateful and stateless servers.
You'll also find useful diagrams, comparison tables, and best practices to help you reinforce what you've learned and quickly reference important concepts when designing scalable, highly available systems.
In this lesson, you'll learn the fundamentals of data modeling and why understanding access patterns is essential before making database decisions.
Using a social media application as an example, you'll discover how to identify key data entities like users, posts, likes, comments, and follows, define their attributes, and establish relationships between them.
You'll also understand how a well-designed data model influences database selection, query efficiency, and scalability.
In this lesson, you'll explore the key differences between SQL and NoSQL databases, including data structures, relationships, ACID transactions, consistency models, querying capabilities, and scalability.
You'll also discover the different types of NoSQL databases and understand their strengths, limitations, and trade-offs.
Most importantly, you'll learn how to choose and justify a database based on your system's data model, consistency requirements, and access patterns, using a social media application as a practical example.
In this lesson, you'll learn how database indexes improve query performance by allowing databases to locate records efficiently without scanning entire tables.
Using PostgreSQL and a social media application as practical examples, you'll discover how indexes work, when to create them, and how they optimize read-heavy workloads.
In this lesson, you'll explore caching in depth, including different caching layers, Redis, CDNs, and strategies like Cache-Aside, Write-Through, Write-Behind, and Read-Through.
You'll also learn how cache eviction policies (LRU, LFU, FIFO), TTL, and cache invalidation work, and how to handle common challenges like stale data, cache stampedes, and hot keys.
Most importantly, you'll understand when to introduce caching, how to choose the right strategy, and how to explain its trade-offs in a system design interview.
In this lesson, you'll learn how database replication works, including primary and replica databases, read and write distribution, and the differences between synchronous and asynchronous replication.
You'll also explore important concepts like replication lag, strong consistency, eventual consistency, and how to handle situations where users need the latest data.
Most importantly, you'll discover how replication improves read scalability and high availability through failover, while understanding the trade-offs involved in designing reliable database systems.
In this lesson, you'll learn why traditional hash-based distribution using modulo becomes inefficient as a system scales, and how consistent hashing solves this problem by minimizing data redistribution.
You'll explore how hash rings work, how data is assigned to servers, and what happens when servers join or leave the cluster.
You'll also discover how virtual nodes improve load balancing and why consistent hashing is essential for designing scalable distributed databases, caching systems, and other distributed architectures.
In this lesson, you'll learn the CAP theorem and its three fundamental properties: Consistency, Availability, and Partition Tolerance.
You'll explore how network partitions force distributed systems to make trade-offs between consistency and availability, using practical examples from a social media application.
Most importantly, you'll discover when to prioritize availability over consistency, why different operations require different guarantees, and how to explain and justify these architectural decisions in system design interviews.
A concise cheat sheet covering data modeling, SQL vs. NoSQL, database indexing, caching, replication, sharding, consistent hashing, and the CAP theorem, with key concepts, diagrams, and practical system design trade-offs.
In this lesson, you'll learn how object storage solutions like Amazon S3 handle large media files while keeping structured metadata in relational databases.
You'll explore efficient upload strategies using pre-signed URLs, asynchronous image processing with background workers, and how Content Delivery Networks (CDNs) reduce latency by caching content closer to users.
You'll also discover how CDN caching, TTL, cache invalidation, and edge routing work together to improve performance, scalability, and global content delivery.
In this lesson, you'll learn the fundamentals of APIs, including requests and responses, endpoints, HTTP methods (GET, POST, PUT, PATCH, DELETE), and how API calls are processed by backend systems.
Using a social media application as a practical example, you'll explore cursor-based and offset-based pagination and their impact on performance and scalability.
You'll also discover essential API design best practices, including naming conventions, HTTP status codes, authentication, authorization, filtering, versioning, and documentation, helping you design secure, efficient, and maintainable APIs.
In this lesson, you'll explore four communication techniques: Polling, Long Polling, WebSockets, and Server-Sent Events (SSE), and understand how each approach works.
Using a social media application as a practical example, you'll learn their differences, advantages, limitations, and trade-offs in terms of latency, scalability, and server resources.
You'll also discover how mobile push notifications work using APNs and Firebase Cloud Messaging (FCM), and how to choose the right communication approach based on your system's requirements.
In this lesson, you'll learn how message queues work, including producers, consumers, background workers, and how queues improve reliability, scalability, and resilience.
You'll explore the differences between message queues and Publish/Subscribe (Pub/Sub), and discover how event-driven architectures allow independent services to react to events without being tightly coupled.
Finally, you'll tackle a classic system design interview challenge: fan-out on write vs. fan-out on read, understanding their trade-offs and how a hybrid approach can efficiently handle social media feeds for millions of users.
In this lesson, you'll walk through a complete system design interview breakdown, from gathering functional and non-functional requirements to defining core entities, designing APIs, and building a high-level architecture.
You'll explore critical challenges like preventing double bookings, managing temporary seat reservations with Redis, processing payments asynchronously using Kafka, and handling failures with the Saga pattern.
You'll also discover how Elasticsearch and Change Data Capture (CDC) enable fast flight searches while maintaining data consistency, and learn how to justify architectural decisions and trade-offs in system design interviews.
Most likely, you hear a lot of these terms from senior engineers, such as load balancer, cache, replication, sharding, cache invalidation, CAP theorem, etc. But you’ve never deeply understood what these terms actually mean. Or you might have seen someone doing a system design interview breakdown on YouTube using a whiteboard, for example, but never understood what they were doing.
That’s why I’ve created this course: to help you understand how senior engineers design systems that can scale.
What is unique about this system design course is that it’s not going to teach you concepts in isolation, like many other courses out there. Instead, we’re going to teach you by actually building a system: a social media app like Instagram, starting with one server and scaling it step by step to an architecture that supports millions of users. Each concept we introduce is based on a real-world scaling bottleneck, so you understand not only how we do things, but also why we do them.
How the course works
The entire course is built around one social media app. It starts with one server and one database. But as traffic grows, we’re going to notice that the app can become a single point of failure, and when the server goes down, the entire app goes down.
We scale the server up by adding hardware resources. As traffic keeps growing, we notice that the server cannot keep up, even when scaling vertically. So we run into another issue, and we scale horizontally by introducing more servers. But that introduces another problem: when a user sends a request, which server should handle it? And that’s where the load balancer comes into the picture. And we go on following the same approach.
System design is nothing but watching a system break and trying to fix it.
So you never learn a concept in isolation. You learn then by watching the system fails
By the end of the course, you’ll have a solid understanding of how scalable architectures actually works
You don’t need systems design experience
We start from the absolute basics, client server model, networking protocols, t functional vs non-functional requirements, and so on. And each lesson is actually built on top of the ones before it.
What does this course actually cover?
Fundamentals: Functional vs. non-functional requirements, client-server model, networking protocols, and Single point of failure
Scaling: Distributed systems and their characteristics, Load balancing, Horizontal vs Vertical Scaling, and stateless vs stateful servers.
Databases: Data modeling, SQL vs NoSQL databases, database indexing, and how to choose the right storage for your system.
Caching and database scaling: Caching deep dive, database replication, sharding, and how data is evenly distributed via consistent hashing.
System Design Trade-offs: CAP theorem
APIs and real-time communication: API design, Polling vs WebSockets.
Advanced building blocks: Object storage, CDNs, and message queues.
Interview prep: Clarifying requirements, back-of-the-envelope estimation, Iinterview questions breakdown