All lessons
16 lessons. Core concepts and key technologies are free; Patterns and Question breakdowns are premium, ₹1 a lesson.
Core concepts
Partitioning and sharding
Splitting data across machines is easy to say and hard to undo. The partition key you pick on the whiteboard decides which queries are cheap, where the hot spots land, and what a resize costs.
Core conceptsReplication and consistency
Copies make a system survive failures and serve more reads. They also make "the current value" a question with more than one answer, and the interview is about which answer you chose on purpose.
Core conceptsCaching
A cache is a second copy of your data that is allowed to be wrong. Every design decision about it is a decision about how wrong, for how long, and who notices.
Core conceptsIdempotency
Networks retry, users double-click and message brokers redeliver. Idempotency is how a system makes "it happened twice" mean the same as "it happened once".
Core conceptsOptimistic vs pessimistic locking
Two people hit Save on the same row at the same moment. Whose change wins is not something the database decides for you, and the answer you pick says a lot about how your data is used.
Key technologies
Kafka
A replayable log that most candidates describe as a queue. The difference is where the interesting follow-ups live.
Key technologiesRedis
Most candidates call it a cache. It is a single-threaded data structure server, and nearly every good follow-up comes from that sentence.
Key technologiesPostgres
The default answer for a system of record, and usually the right one. The interview is about knowing exactly where it stops being right: MVCC bloat, connection limits, and the single writer.
Key technologiesCassandra
A write-optimised, leaderless wide-column store that is very good at exactly the queries you designed it for and bad at every other one. The data model is the whole interview.
Key technologiesElasticsearch
A search engine that people keep trying to use as a database. It is extraordinary at relevance and aggregations over text, and it is a derived copy of your data — never the source of truth.
Key technologiesAPI gateway
The box every design draws between the client and the services. It earns its place by owning the cross-cutting concerns once, and loses it the moment business logic starts living there.
Patterns
Event-driven work queues
Move slow work out of the request path and onto workers. The pattern is one box on a diagram; the interview is about what happens when a worker dies halfway, a job fails forever, or the queue grows faster than you drain it.
PatternsChange data capture
Turn every committed change in your database into an event, without the application having to remember to publish it. The pattern behind search indexes, caches, analytics and outboxes that never drift.
PatternsScaling reads
Most systems read ten to a thousand times more than they write. The ladder from "add an index" to "precompute every timeline" is the same in every design, and the interview tests whether you climb it in the right order.
Question breakdowns
Design a ride-hailing backend
Riders request, drivers move, and a match has to happen in seconds against a map that changes every few seconds. The interview is location indexing, matching without double-booking, and a trip state machine that survives flaky phones.
Question breakdownsDesign a payments ledger
A ledger is the one system where "eventually consistent" and "approximately right" are both unacceptable. Double-entry, immutability and idempotency are not best practices here; they are the design.