System Design · Middle · Question 49 of 75
Why is search for large catalogs done on the server rather than by filtering on the client?
- ✓Correct answer: Millions of records can't be loaded into the browser
- 2Browsers don't support comparing strings in non-Latin languages
- 3Client-side filtering is forbidden by security policies
Explanation
Server-side search engines (Elasticsearch, Meilisearch, PostgreSQL full-text search) provide relevance, typo tolerance and facets. Client-side filtering is appropriate for hundreds to thousands of already loaded records.