Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Restaurant Menu Catalog Service

Design a read-heavy service where restaurant operators publish complete menu revisions and diners view the current menu.

Problem statement

For this exercise, assume an authorized restaurant operator can maintain a draft menu and publish it, and diners can load the currently published menu for a restaurant. A menu contains ordered sections, items, prices, optional modifier groups, and a display-availability flag.

Publishing makes one complete immutable revision current; every diner response must come entirely from one published revision. Restaurant discovery, carts, ordering, payments, delivery, ratings, menu-image hosting, and real-time inventory are out of scope.

Design the APIs, data model, publication workflow, read path, caching strategy, and failure recovery needed to keep menu reads fast while making a successful publication visible within the stated freshness target.

What to build

  1. An authorized restaurant operator can create and update a draft containing ordered sections, items, prices, modifier groups, and display-availability flags.
  2. An operator can validate and publish a complete menu revision safely, including when a request is retried or another operator publishes concurrently.
  3. A diner can retrieve a restaurant's current published menu as one internally consistent revision.

At scale

  • Assume one million restaurant locations and up to one thousand active menu items per restaurant.
  • At peak, diner menu reads occur at roughly ten times the rate of operator draft and publication requests.
  • Target a p95 diner-menu read latency below 200 ms and 99.95% read availability.
  • A successful publication must become visible to diners worldwide within 30 seconds, while no response may mix data from different published revisions.