Search Goes Prime Time
Easy · system design problem
A TV spot quadruples searches. Primary shards are fixed at index creation, indexing keeps running, and search-api’s threads wait on every slow query.
search-api queries a 3-shard Elasticsearch index (one replica per shard) while catalog updates keep indexing documents (indexing costs five times a search). At T+20s a TV spot quadruples searches for the rest of the evening. The number of primary shards was fixed when the index was created; replica shards can be added and fill from their peers in moments.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.