PPractick

System design interview question

Design Twitter search

Medium · System design (HLD)

The prompt

"Design search over tweets. A user searches a term and gets matching tweets — and during a live event, a tweet posted three seconds ago should already be findable. 500 million tweets a day, and searches spike enormously during breaking news."

What this round really tests

real-time indexing at extreme write velocity, which inverts the usual search trade-offs. Web search can rebuild indexes over hours; here the index must absorb 6,000 writes per second and make them searchable in seconds. The distinguishing content is: an in-memory real-time index, recency-dominant ranking, and the fact that the corpus is unbounded while queries almost always want the recent slice.

Clarifying questions worth asking

Practise questions like this with a real engineer

On Practick another engineer interviews you live for 60 minutes on a question from this bank. They have the full interviewer guide beside the call: the answers to your clarifying questions, the numbers to hand out, a ladder of follow-ups and a scoring rubric. You get the model solution once the session settles. It is free: interview someone for an hour and you have earned your own.

Book a free mock interview

Related questions

All 132 system design interview questions

System design mock interviews · DSA interview questions · Free mock interview practice · Browse interviewers · Sign in