Design a Restaurant Chain Website with Seasonal Menu Updates

Quick Overview

A system design question about a website for a restaurant chain whose menu changes with seasonal promotions, at modest traffic. It centers on the database schema for menu items, locations and time-bounded promotions, and on how the site decides which items and prices to show at a given moment.

Design a Restaurant Chain Website with Seasonal Menu Updates

Company: Google

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Onsite

Design the website for a restaurant chain with multiple locations. Customers come to the site to see the menu, and the chain updates the menu to follow each season's promotions. Staff manage the menu and the promotions; customers see the menu that is current. Traffic is modest, so the design does not need to handle a very large number of daily active users. The discussion centers on the data model: design the database schema for the menu and the seasonal promotions, and show how the site decides which menu to display at a given time. ```hint Split what changes from what stays List which facts about a menu item stay the same all year and which depend on the season, then decide where each kind of fact is stored. ``` ```hint Ask one question of the schema Write the query behind "what does the menu show right now?" and check that your tables make it straightforward. ``` ### Clarifying Questions - Does every location serve the same menu, or can a location add, remove or reprice items? - What does a seasonal promotion change: new limited-time items, prices of existing items, hidden items, or a combination? - Should promotions start and end automatically at scheduled times, or does staff switch them on and off by hand? - Can two promotions be active at the same time, and if both change the same item, which one wins? - Does the site take online orders, or does it only display the menu? - Do past menus and prices need to be kept, for example for reporting or for orders already placed? ### What a Strong Answer Covers - Clarifying questions that settle per-location differences, what a promotion changes and how overlapping promotions combine, asked before the schema. - A normalized schema for items, categories, locations and promotions with primary keys, foreign keys, constraints and indexes. - How promotion start and end times are stored, including time zones, and how the current menu is derived from them. - Price history and a rule for conflicts between overlapping promotions. - A simple serving path sized for modest traffic, with caching and invalidation when staff publish a change. ### Follow-up Questions - Promotions must start at the same local time at every location, and the locations span several time zones. How do you store and evaluate the start time? - Staff want to preview next season's menu before it goes live. What changes in the schema and the admin workflow? - The chain adds online ordering. How do you make sure an order keeps the price the customer saw after the promotion ends? - An item sells out at one location for the rest of the day. How do you show that without editing the menu?

Overview: A system design question about a website for a restaurant chain whose menu changes with seasonal promotions, at modest traffic. It centers on the database schema for menu items, locations and time-bounded promotions, and on how the site decides which items and prices to show at a given moment.

Google logo
Google
Aug 15, 2026
mediumSoftware EngineerOnsiteSystem Design
0
0

Design the website for a restaurant chain with multiple locations. Customers come to the site to see the menu, and the chain updates the menu to follow each season's promotions. Staff manage the menu and the promotions; customers see the menu that is current.

Traffic is modest, so the design does not need to handle a very large number of daily active users. The discussion centers on the data model: design the database schema for the menu and the seasonal promotions, and show how the site decides which menu to display at a given time.

Clarifying Questions Guidance

  • Does every location serve the same menu, or can a location add, remove or reprice items?
  • What does a seasonal promotion change: new limited-time items, prices of existing items, hidden items, or a combination?
  • Should promotions start and end automatically at scheduled times, or does staff switch them on and off by hand?
  • Can two promotions be active at the same time, and if both change the same item, which one wins?
  • Does the site take online orders, or does it only display the menu?
  • Do past menus and prices need to be kept, for example for reporting or for orders already placed?

What a Strong Answer Covers Guidance

  • Clarifying questions that settle per-location differences, what a promotion changes and how overlapping promotions combine, asked before the schema.
  • A normalized schema for items, categories, locations and promotions with primary keys, foreign keys, constraints and indexes.
  • How promotion start and end times are stored, including time zones, and how the current menu is derived from them.
  • Price history and a rule for conflicts between overlapping promotions.
  • A simple serving path sized for modest traffic, with caching and invalidation when staff publish a change.

Follow-up Questions Guidance

  • Promotions must start at the same local time at every location, and the locations span several time zones. How do you store and evaluate the start time?
  • Staff want to preview next season's menu before it goes live. What changes in the schema and the admin workflow?
  • The chain adds online ordering. How do you make sure an order keeps the price the customer saw after the promotion ends?
  • An item sells out at one location for the rest of the day. How do you show that without editing the menu?