System Design · Ebay · Hard
Design the back-end for a search box on a shopping site. While a shopper types, the system should quickly offer a list of likely completions for the current prefix. Once the shopper submits a complete query, a separate path should return a ranked page of products matching that query along with any selected filters, such as category, price range, or availability. These two functions must be decoupled: the autocomplete component should not go through the main product-search…
Checking your access…