Free preview

Why Quora Exists

In one line: a search engine can only find what already exists, and a community can make something new — which puts a human on the critical path and changes what the system can afford.

Retrieval versus creation

This is a category difference, not a quality difference.

A search engine is bounded by its corpus. If nobody has written the answer, no amount of ranking sophistication produces one — retrieval can only rank what exists.

A community is bounded by who is willing to answer. It can produce something that did not exist an hour ago.

The engineering consequence is what matters: the human is the slow component, and the human is unavoidable. A question waits minutes or hours for a good answer, so shaving milliseconds off the posting path changes nothing a user can perceive.

What Quora is

Quora is a social question-and-answer platform. It addresses the shallow-information problem of search engines by connecting people with a community of peers and domain experts, and it serves hundreds of millions of monthly active users generating thousands of questions per day across hundreds of thousands of topics.

Put those two numbers side by side, because the gap is the design.

Hundreds of millions of users producing only thousands of questions a day means the overwhelming majority of activity is reading. A question is written once and then read for years.

So Quora shares YouTube's fundamental shape — written rarely, read constantly — even though the content is text rather than video. The same instincts apply: cache aggressively, let the write path be slow, put the engineering into serving.

The difference is where the bytes are. YouTube's problem was 12 Tbps of video egress. Quora's read volume is high in requests and small in bytes — which is why this chapter's hard problems are about latency, coupling, and skew rather than about bandwidth.

How the chapter proceeds

Lesson groupCovers
Requirements and estimationWhat the system must do, and where the storage actually goes
The baseline designServers, three stores, two caches, compute hosts, the workflows, and the API
LimitationsFour problems in that design — all of them coupling
The fixesService hosts, vertical sharding, MyRocks, Kafka, then technology choices and disaster recovery

Note the structure. Most design chapters build an architecture and stop. This one builds one, then evaluates it and finds it wanting in four specific ways, then fixes each.

That arc is the most transferable thing in the chapter. In an interview, being able to critique your own design is worth more than drawing a correct one — because the interviewer learns whether you can find problems, not just avoid them.

Key takeaway

A search engine is bounded by its corpus; a community is bounded by who will answer — so it can produce what did not exist. That puts a human on the critical path, which makes the write path's latency budget unusually generous and pays for stronger guarantees elsewhere. And the traffic is written rarely, read constantly, but unlike video the volume is in requests rather than bytes — so the hard problems here are latency, coupling, and skew.

Interview signal by level

LevelWhat a strong answer sounds like
L4"Users post questions and other users answer them, so we need storage and a way to serve them."
L5Names the read/write shape: "a question is written once and read for years, so this is read-heavy and the write path can be slow."
Staff+Draws the consequence of the human in the loop: "the slow component is a person deciding to answer, which takes minutes to hours — so the posting path has an unusually generous latency budget, and I'd spend it on synchronous replication for critical data rather than optimizing a path nobody perceives. And unlike video, the read volume here is in requests rather than bytes, so the hard problems are tail latency and skew, not egress."

Next: what the system must do, and where the storage actually goes.

Enjoying the preview?

Create a free account to unlock the rest of this course, the in-browser judge, and live AI mock interviews.

Sign up free to continue