Design a Scalable Typeahead Suggestion System
Design a search autocomplete system (Typeahead) similar to Google or Amazon. The system should support 500 million daily searches with a p99 latency under 100ms. Discuss how you would store and query prefix data efficiently, how the system handles the massive write volume of search logs, and how you would ensure the suggestions remain relevant as search trends change. Focus on data structure selection, caching strategies, and the end-to-end data pipeline.
TrieRedisKafkaApache SparkAPI GatewayCDNNoSQLgRPC
10