Guided LabsChallengesPricingDesign Lab
CoursesTopicsQuizzes
DocsBlogSolutions
LoginSignup
Menu
Guided LabsChallengesPricingDesign Lab
LoginSignup

Guided Labs

Learn by building, step-by-step, hands-on system design

28/28
Showing

Each lab walks you through building a real architecture component by component. Every node is explained: what it does, why you need it, and how to configure it.

28 labs
Theory CoursesModule QuizzesReal ChallengesOpen Design Lab

Fundamentals

Core 3-tier, client-server patterns

Your First System

Build a basic client → server → database architecture from scratch and understand the 3-tier pattern.

3-tier architectureclient-server modelrequest-response cycle
Easy

Capacity Estimation Drill

Translate traffic assumptions into concrete compute, cache, and storage sizing decisions.

RPS budgetingheadroomtier sizinglatency budgetssafety factors
ProMedium

Networking

Load balancing, CDN, API gateways

Load Balancing & Horizontal Scaling

Add a load balancer to distribute traffic across multiple API servers and handle traffic spikes.

load balancinghorizontal scalinground-robinhealth checksredundancy
Easy

API Gateway & Authentication

Add an API gateway for centralized auth, rate limiting, and request routing.

API gateway patternJWT authenticationrate limitingrequest routing
Easy

CDN & Edge: Global Content Delivery

Add a CDN to serve static assets from edge locations worldwide, dramatically reducing latency for global users.

CDNedge cachingcache invalidationTTLorigin server
Easy

Storage

Databases, caching, search

Supercharge with Caching

Add a Redis cache to reduce database load and dramatically improve response times.

caching strategiescache-aside patternTTLcache invalidationhit rate
Easy

Database Replication & Read Scaling

Add read replicas to scale database reads and add failover for high availability.

read replicasreplication lagfailoverprimary-secondaryconsistency
Medium

NoSQL & Document Databases

When to choose NoSQL over SQL and how to model data for document stores like MongoDB.

NoSQL vs SQLdocument modelingeventual consistencydenormalization
ProMedium

Full-Text Search with Elasticsearch

Build a search feature with Elasticsearch for fast, fuzzy, full-text search across your content.

full-text searchinverted indexElasticsearchsearch relevance
ProMedium

Storage Engines & Indexing Deep Dive

Model OLTP B-Tree paths, LSM-heavy ingestion, and secondary index tradeoffs in one architecture.

B-Tree vs LSMhot/cold pathssecondary indexescache hit ratioread-write isolation
ProMedium

Partitioning & Sharding

Route traffic across shard domains while keeping lookup and rebalance metadata explicit.

shard routinghot partition controlrebalanceshard map cacheregional partitioning
ProHard

Transactions & Isolation in Practice

Design a checkout flow that keeps correctness under retries, async workers, and partial failures.

ACID boundariesidempotencysaga compensationqueue semanticsisolation tradeoffs
ProHard

Schema Design Workshop

Balance normalized OLTP schemas, denormalized read models, and zero-downtime migration controls.

normalizationread modelsCDCmigration safetyquery-driven schema
ProMedium

Distributed Unique ID Generation

Design a sortable, collision-safe ID issuance path with centralized config and audit trail.

Snowflake-style IDsclock driftworker coordinationuniqueness guaranteesauditability
ProMedium

Compute

Microservices, serverless, workers

Microservices Architecture Pattern

Decompose a monolith into microservices with service discovery, circuit breakers, and independent scaling.

microservicesservice discoverycircuit breakerAPI gatewayindependent deployment
ProMedium

Consensus & Coordination Control Plane

Build a leader/follower coordination flow with explicit quorum registry and election control.

leader electionreplicated logquorumcoordination planefailover control
ProHard

Messaging

Queues, events, streaming

Async Processing with Message Queues

Decouple your services with a message queue and process tasks asynchronously with workers.

message queuesasync processingproducer-consumerdead letter queuesbackpressure
Medium

Event-Driven Architecture with Kafka

Build an event-driven system where services communicate through events instead of direct API calls.

event-driven architectureKafkaevent sourcingstream processingdecoupling
ProMedium

Real-Time Data Pipeline

Build an end-to-end data pipeline: ingest → process → store → analyze with streaming and batch processing.

data pipelinestream processingbatch processingdata warehouseETL
ProHard

Encoding & Schema Evolution

Build a backward-compatible data contract flow using event streams and a schema control plane.

backward compatibilitycontract-firstschema registryevent replayversion rollout
ProMedium

Batch + Stream Dual Path

Build real-time counters and batch analytics from the same event backbone without coupling the two paths.

hot path vs cold pathreal-time aggregatesbatch backfillevent durabilityanalytics isolation
ProHard

Security

Auth, encryption, defense in depth

Defense in Depth: Security Layers

Build a multi-layered security architecture with WAF, firewall, encryption, and rate limiting.

defense in depthWAFfirewallrate limitingencryption at rest/transit
ProMedium

Security, Authentication & Encryption

Compose ingress security, authn/authz, rate limiting, and crypto boundaries into one coherent flow.

authentication chaintoken validationabuse controlencryption boundariesdefense in depth
ProHard

Observability

Monitoring, logging, tracing

Monitoring & Observability

Add the three pillars of observability: metrics, logs, and traces to your distributed system.

monitoringloggingdistributed tracingalertingSLOs
ProMedium

Case Studies

Real-world system design problems

Case Study: URL Shortener

Design a URL shortener like bit.ly - covering hashing, caching, database design, and redirect flow.

hashingcachingdatabase designredirect optimizationanalytics
ProMedium

Case Study: Real-Time Chat System

Design a WhatsApp-like chat system with WebSocket connections, message queuing, and delivery guarantees.

WebSocketreal-time messagingmessage orderingpresencedelivery receipts
ProHard

Case Study: Notification Platform

Design multi-channel notification fanout with priority queues, worker dispatch, and delivery analytics.

fanoutpriority queuesdelivery retrieschannel adaptersdelivery analytics
ProHard

Case Study: Video Streaming Platform

Build upload, transcode, storage, and playback paths with CDN origin strategy and API control planes.

upload pipelinetranscoding queuesegment storageCDN origin pullplayback authorization
ProHard