All lessons

16 lessons. Core concepts and key technologies are free; Patterns and Question breakdowns are premium, ₹1 a lesson.

Core concepts

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.

18 min · free
Core concepts

Replication 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.

20 min · free
Core concepts

Caching

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.

17 min · free
Core concepts

Idempotency

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".

16 min · free
Core concepts

Optimistic 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.

12 min · free

Key technologies

Key technologies

Kafka

A replayable log that most candidates describe as a queue. The difference is where the interesting follow-ups live.

22 min · runnable lab · free
Key technologies

Redis

Most candidates call it a cache. It is a single-threaded data structure server, and nearly every good follow-up comes from that sentence.

24 min · runnable lab · free
Key technologies

Postgres

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.

22 min · free
Key technologies

Cassandra

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.

20 min · free
Key technologies

Elasticsearch

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.

19 min · free
Key technologies

API 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.

15 min · free

Patterns

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.

20 min · premium, ₹1
Patterns

Change 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.

18 min · premium, ₹1
Patterns

Scaling 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.

19 min · premium, ₹1

Question breakdowns

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.

28 min · premium, ₹1
Question breakdowns

Design 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.

26 min · premium, ₹1