Design a Real-Time Suggestions Service
SoFiSoftware Engineer · OnsiteLast updated
Design a Real-Time Suggestions Service evaluates requirements, scale assumptions, API/data design, architecture, trade-offs, failure modes, and rollout in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Design a system that provides real-time typeahead/autocomplete suggestions as users type. Cover API design and request/response schemas, data modeling and indexing (e.g., prefix trees or inverted indexes), ranking signals and personalization, latency targets (e.g., <100 ms P 95), caching layers, scalability, freshness and backfill pipelines, A/B experimentation hooks, and failure handling.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.