Preparing your design workspace

Loading the problem and your latest saved attempt…

Design Saved Home Searches

Let signed-in users keep a home search's filters under a name, see all of them on one page on any device, and reopen any of them with exactly the same filters.

Problem statement

Design the page where a user keeps their saved home searches.

For this exercise, assume the design covers both that page and the service and storage behind it, on a home-listing website where signed-in users search homes for sale with filters such as location, price range, bedrooms, bathrooms, home type and features (for example, a garage).

An existing search service takes a set of filters and returns the matching homes; you do not need to design it. A user who has set up a search they like wants to keep it and come back to it later without entering the filters again.

The critical journey: a user saves the current search under a name, later opens the saved-search page on another device, picks that search, and sees results for exactly the same filters.

Alerts about new matching homes, sharing a saved search, and saving while signed out are out of scope.

What to build

  1. A signed-in user can save the filters of the current home search under a name. Saving the same filters again keeps a single saved search.
  2. The user sees all of their saved searches on one page, on any device, each with its name and a readable summary of its filters.
  3. Opening a saved search runs a home search with exactly the saved filters.
  4. The user can rename or delete any of their saved searches.

At scale

  • For this exercise, assume 10 million daily active users and about 100 million saved searches in total. A user keeps at most 50 saved searches, and one saved search is under 2 KB.
  • For this exercise, assume the saved-search list is read about 5,000 times a second at peak (the page itself, plus the search page checking whether the current filters are already saved), while saves, renames and deletes total about 100 a second.
  • For this exercise, assume the list loads in under 300 ms at the 99th percentile, not counting the home search itself. A change shows at once on the device that made it, and on the user's other devices whenever they open or refresh the page more than 5 seconds later.
  • For this exercise, assume filters are added, renamed or retired a few times a year while saved searches are kept for years, so every saved search must keep opening with a correct summary.