How it works
Suppose two million active people make six searches a day and the client sends four suggestion requests per search after debouncing. That is 48 million suggestion reads a day, about 556 queries per second (QPS) on average. A tenfold busy-hour multiplier suggests about 5,600 QPS. These are illustrative assumptions; check real keystroke patterns, cache hits, and regional peaks before sizing.
Follow the estimate through to see what it decides. If a response with five suggestions is about 300 bytes, peak egress is 5,600 × 300 bytes, about 1.7 MB per second, so bandwidth is not the constraint. Latency and hot prefixes are. If a CDN or browser cache answers half the reads, the origin peak falls to about 2,800 QPS. If only a few reads per second are expected, a database index on one server may be all you need.
Do not count each prefix request as a completed search. A person typing “camera” may request “ca,” “cam,” and “came” before submitting “camera.” Those are three reads but one search. The same example produces 12 million completed searches a day, about 139 per second. With consent and retention rules, those can feed popularity counts. At 100 bytes each, they add 1.2 GB of logs daily. Keep the read-heavy serving path separate from collection and periodic index building; a log such as Kafka is a common boundary between the two.
An estimate says 12 million searches per day means 12 million autocomplete requests. What is missing?
One search can generate several prefix requests. Measure requests per search after debouncing, then apply a peak factor.
Use this as a guide for self review; written answers are not graded.Keep in mind
- Estimate suggestion reads from typing behavior and peaks.
- Intermediate prefixes and completed searches are different events.