All problems
Advanced·🛠️ Developer Tools·Elasticsearch · Algolia · Shopify +1

Design
Typeahead / Instant Search

Design an instant search feature that returns results across multiple entity types (users, products, articles) as the user types.

This is a Low-Level Design (LLD) problem. New to LLD vs HLD? Start here.

#Search#Distributed Systems#Indexing
7F + 3NF requirements inside

01 -  Why interviewers ask this

It's the search-engine-scale version of autocomplete — interviewers check if your design survives when the trie itself is too large for one machine.

02 -  Where this system exists in the real world

You interact with this design every day.

Search engine query suggestion systems

E-commerce marketplace search-as-you-type

Large-scale product catalog search UIs

03 -  What you'll master

Solve this once. Know it forever.

01

Shard a trie/index across multiple nodes

02

Aggregate ranked results from multiple shards

03

Keep suggestion data freshness reasonable

04 -  What you'll design

7 functional · 3 non-functional requirements.

Return mixed results (users, products, articles) for any query prefix

6 more requirements inside

Sign in to unlock the full brief and start designing

05 -  Companies that ask this

You may face this exact question in your next interview.

E
Elasticsearch
A
Algolia
S
Shopify
L
LinkedIn

Ready?

Open the canvas.
Design it yourself.

See all requirements, use staged hints, run your code, and compare with community discussions - all on the same canvas.