System Design and DSA,
made simple.System Design aur DSA,
samjho.
All you need to crack your next job at FAANG. Learn real systems like WhatsApp and Uber, and solve classic DSA questions from brute force to optimal, with videos, hands-on labs and a code editor that runs in your browser.FAANG me apni next job crack karne ke liye jo bhi chahiye, sab yahin. WhatsApp aur Uber jaise real systems seekho, aur classic DSA questions brute force se optimal tak solve karo, videos, hands-on labs aur browser me chalne wale code editor ke saath.
VA
Vishakh AgarwalIIT Madras alumnus · Software Engineer at HPE · Founder, Neural AIIIT Madras alumnus · Software Engineer at HPE · Founder, Neural AI
Your System Design roadmapTumhara System Design roadmap
Go in order, or jump to whatever you are curious about. Tick lessons off as you go; your progress saves on its own.Order follow karo, har lesson complete karte jao. Progress apne aap save hoti hai.
Foundations
System design ki language: scalability, latency, availability, CAP. Ye clear, to sab clear.System design ki language: scalability, latency, availability, CAP. Ye clear, to sab clear.
System Design Kya Hai?
What system design means, why interviews test it, and how to use this site.System design ka matlab, kyun interview mein poochte hain, aur is site ko kaise use karna hai.
Scalability: Vertical vs Horizontal
How systems grow with traffic: a bigger server or more servers, and why stateless design wins.Traffic badhne par system ko kaise badhate hain: bada server ya zyada servers, aur stateless design kyun king hai.
Latency vs Throughput
The two most confused terms: how fast one request finishes vs how many requests the system handles at once.Do sabse zyada confuse hone wale terms: ek request kitni jaldi poori hoti hai vs system kitne requests ek saath sambhalta hai.
Availability & the Nines
What 99.9% vs 99.99% really means, what a single point of failure is, and how high availability is achieved.99.9% aur 99.99% mein kya farak hai, single point of failure kya hota hai, aur high availability kaise milti hai.
CAP Theorem
When the network splits, what do you pick: correct data or an available system? The most famous tradeoff in distributed systems.Network cut ho jaye to kya chuno: sahi data ya available system? Distributed systems ka sabse famous tradeoff.
Consistency Models
Strong, eventual, causal, read-your-writes: when and how data syncs between replicas.Strong, eventual, causal, read-your-writes: replicas ke beech data kab aur kaise sync hota hai.
Core Building Blocks
Load balancers, caches, queues, databases. Har bada system inhi blocks se banta hai.Load balancers, caches, queues, databases. Har bada system inhi blocks se banta hai.
Load Balancing
How traffic gets divided across servers: L4 vs L7, algorithms, health checks, sticky sessions.Traffic ko servers mein kaise baanta jata hai: L4 vs L7, algorithms, health checks, sticky sessions.
Caching
The speed layer in front of the database: cache-aside vs write-through, eviction, invalidation, thundering herd.Database se pehle ka speed layer: cache-aside vs write-through, eviction policies, invalidation, thundering herd.
CDN (Content Delivery Network)
Serving content from a server near the user: edge locations, static vs dynamic content, and offloading the origin.User ke paas ke server se content serve karna: edge locations, static vs dynamic content, aur origin load kaise ghatta hai.
Databases: SQL vs NoSQL
Postgres or MongoDB or Cassandra? Database types, their strengths, and how to choose.Postgres ya MongoDB ya Cassandra? Database types, unke strengths, aur kaunsa kab choose karna hai.
Sharding & Partitioning
When one database cannot hold the data: shard keys, consistent hashing, hotspots, rebalancing.Ek database mein data na samaaye to kaise baantein: shard keys, consistent hashing, hotspots, rebalancing.
Message Queues & Kafka
Decoupling services and absorbing spiky traffic: queues, pub-sub, delivery guarantees, idempotency.Services ko decouple karna, spiky traffic absorb karna: queues, pub-sub, delivery guarantees, idempotency.
Rate Limiting
Protecting APIs from abuse and overload: token bucket, sliding window, 429 responses, distributed limiting.API ko abuse aur overload se bachana: token bucket, sliding window, 429 responses, distributed limiting.
WebSockets & Real-time
Chat, live scores, cursors: polling vs SSE vs WebSocket, and how millions of connections are handled.Chat, live scores, cursors: polling vs SSE vs WebSocket, aur millions connections kaise sambhalte hain.
API Design: REST Done Right
REST conventions, versioning, pagination, errors, idempotency keys. Your API is your contract.REST conventions, versioning, pagination, errors, idempotency keys. API hi aapka contract hai.
Database Indexes: B-Tree Samjho
The real cure for slow queries: how B-Tree indexes work, composite indexes, and when indexes hurt.Slow query ka asli ilaaj: index kaise kaam karta hai, composite indexes, aur kab index nuksaan karta hai.
Replication: Leader, Follower, Failover
What if the DB dies? Primary-replica setups, replication lag, failover, and the split-brain danger.Ek DB mar jaye to? Primary-replica setup, replication lag, failover, aur split-brain ka khatra.
Case Studies
Ab real systems design karo: URL shortener, WhatsApp, Uber, BookMyShow. Interview-ready.Ab real systems design karo: URL shortener, WhatsApp, Uber, BookMyShow. Interview-ready.
Case Study: Notification System
Push, SMS, email: designing a notification system that ships billions of messages without spamming.Push, SMS, email: ek notification system kaise design karein jo billion messages bheje, bina spam kiye.
Case Study: News Feed at Scale
A Twitter/LinkedIn-style feed: fan-out on write vs read, the celebrity problem, ranking, and real-time updates.Twitter/LinkedIn jaisa feed: fan-out on write vs read, celebrity problem, ranking, aur real-time updates.
Case Study: URL Shortener
The classic warm-up: base62 encoding, counter vs hash collisions, 301 vs 302 redirects, read-heavy caching.bit.ly jaisa service design karo: short code kaise banayein, redirects, scale math, analytics. Interview ka all-time classic.
Case Study: WhatsApp Jaisa Chat App
Full design with a video: real-time messaging, 1-1 and group delivery, online status, media, and scale.Billions messages/day: WebSocket connections, delivery ACKs, offline queue, message dedup, groups. EP05 ke saath padho.
Case Study: Uber Ka Live Map
With a video: matching riders to nearby drivers using geohashing, real-time location updates, and state machines.Lakhs cabs har 4 second mein location bhejti hain: H3/geohash indexing, Kafka pipeline, Redis counters, surge pricing.
Case Study: Ticket Booking (Race Condition)
BookMyShow-style ticketing: seat locking, high-contention inventory, payment timeouts, and the flash-sale rush.2 log, 1 seat, ek hi second mein book ki: double booking kaise rokte hain. Atomic holds, idempotency, expiry. EP04 ke saath.
AI Systems
RAG, MCP, Transformers. AI products ke andar ka system design, simple words mein.RAG, MCP, Transformers. AI products ke andar ka system design, simple words mein.
AI Agents in Production
Agent loops, tools, memory, guardrails, cost control: what changes between a demo and production.Agent loops, tools, memory, guardrails, cost control: demo se production tak kya badalta hai.
AI Systems: RAG
With a video: giving LLMs your data via embeddings, vector search, and retrieval-augmented generation.LLM ko aapke documents se jawab dilwana: embeddings, vector search, chunking, retrieval, grounding. EP01 ke saath.
AI Systems: MCP
With a video: Model Context Protocol, the USB-C of AI, a standard way for LLMs to use tools and data sources.Model Context Protocol: AI apps ko tools aur data se jodne ka ek standard. USB-C for AI. EP02 ke saath.
AI Systems: Transformers & Attention
With the long-form video: how LLMs work inside. Tokens, embeddings, attention, and why Transformers changed AI.ChatGPT ke andar kya hai: tokens, embeddings, attention mechanism, aur LLM text kaise generate karta hai. Deep-dive video ke saath.
Face the interview before the interview.Asli interview se pehle, interview ki practice.
A free AI mock interview that runs the round like Google, Amazon and Meta actually do: DSA, system design or behavioral, with follow-ups, a live timer and a hiring-committee style report. In English or Hinglish.Free AI mock interview jo bilkul waise round leta hai jaise Google, Amazon aur Meta mein hota hai: DSA, system design ya behavioral, follow-ups, live timer aur hiring-committee style report ke saath. English ya Hinglish mein.
What do Google, Amazon, Uber and Tesla actually ask?Google, Amazon, Uber, Tesla asal mein kya poochte hain?
50+ reported system design questions from 7 companies, each with its source and the lesson here that teaches it.7 companies ke 50+ reported system design sawal, har ek ke source ke saath aur wo lesson jo yahan use sikhata hai.
Latest from the channelLatest from the channel
Every lesson has a video behind it. The full playlist is on YouTube.Har lesson ke peeche ek video. Poora playlist YouTube par.
ChatGPT Jaisa LLM Andar Se Kaise Kaam Karta Hai? Transformers Explained (Hindi)
WhatsApp Jaisa Chat App Kaise Banta Hai? WebSocket, Queue aur Ticks | System Design Ep 05
Uber ko kaise pata CABs Kahan Hai? H3, Kafka, Redis ka Asli Khel | System Design EP 03
Reels on @vishakh.systemdesign
Short, sharp system-design reels. New drops land here first.Short, sharp system-design reels. Naye drops sabse pehle yahan.
Claude solved a 167-year-old math problem? Riemann Hypothesis
China NVIDIA chips copy kyun nahi kar sakti? 7nm vs 4nm vs 2nm
2 log, 1 seat. Race Condition & Idempotency (Ramayana ticket)
Lakhon cabs, 1 live map: H3, Kafka, Redis (Uber)
100 log, har teesra OUT: Josephus Problem
500-page PDF, ek sawaal: RAG ka flow (EP 01)
Hi, I am Vishakh Agarwal.Hi, main Vishakh Agarwal.
At HPE, I build and maintain the company's composable and converged infrastructure management platforms. Alongside that, I co-founded Neural AI, an AI research lab based out of the Sudha and Shankar Innovation Hub at IIT Madras, and Eternity Engineering Labs, which engineers solutions for Fortune 500 companies.HPE mein main company ke composable aur converged infrastructure management platforms banata aur maintain karta hoon. Iske saath maine Neural AI co-found kiya, jo IIT Madras ke Sudha and Shankar Innovation Hub se chalne wali ek AI research lab hai, aur Eternity Engineering Labs bhi, jo Fortune 500 companies ke liye engineering solutions banati hai.
As the founding President of the Jamsetji Tata Society for Innovation and Entrepreneurship at IIT Madras, I helped more than 120 startups take off, working on incubation, funding, networking and acceleration with partners like STPI, Wadhwani Foundation and Startup India.IIT Madras mein Jamsetji Tata Society for Innovation and Entrepreneurship ka founding President rehte hue maine 120 se zyada startups ko aage badhne mein help kiya: incubation, funding, networking aur acceleration, STPI, Wadhwani Foundation aur Startup India jaise partners ke saath.
I also co-founded KaroStartup and worked on stealth ventures that reached multi-million dollar revenue, backed by well-known angels and VCs. I am on the founding team of a deeptech-focused VC fund that backs India's top deeptech startups. My experience spans YC, Stanford and Wadhwani Foundation too.Maine KaroStartup bhi co-found kiya aur un stealth ventures pe kaam kiya jo multi-million dollar revenue tak pahunche, jinhe jaane-maane angels aur VCs ka support mila. Main ek deeptech-focused VC fund ki founding team mein hoon, jo India ke top deeptech startups ko back karta hai. Mera experience YC, Stanford aur Wadhwani Foundation tak bhi failta hai.
That is why this site exists. I have seen what holds up when real products scale, and what interviewers look for. I explain it in simple Hinglish and English, free, in a structured order. If one lesson helps you in an interview, the mission is complete.Isi liye ye site hai. Maine dekha hai ki real products scale hote waqt kya tikta hai, aur interviewers kya dekhte hain. Main use simple Hinglish aur English mein, free, ek structured order mein samjhata hoon. Agar ek bhi lesson interview mein kaam aaye, mission complete.