Design a Price and Promotion Engine for Way Day Flash Sales
Last updated: November 29, 2026
Quick Overview
Design the service that computes the price a shopper sees for any SKU, combining list price, scheduled sale events, coupons and customer-specific offers, and that can switch tens of millions of prices at the start of a Way Day sale without stale or inconsistent prices between search, product page and checkout.
Wayfair
November 29, 20260
0
0 solved
Design the service that computes the price a shopper sees for any SKU, combining list price, scheduled sale events, coupons and customer-specific offers, and that can switch tens of millions of prices at the start of a Way Day sale without stale or inconsistent prices between search, product page and checkout.
Way Day is Wayfair's largest annual sale, with prices across much of the catalog changing at a set moment and traffic peaking far above normal. Interviewers check that you separate precomputed base prices from request-time personalisation, plan the cutover, and guarantee the checkout price is the one the shopper was shown.
What the Interviewer Expects
- Separates precomputed scheduled prices from request-time coupon evaluation
- Plans an atomic or versioned cutover at sale start
- Keeps search index, product page and cart consistent
- Makes checkout the authoritative price with a quote or price token
- Sizes read traffic and caching for peak
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- A supplier changes cost mid-sale and the margin floor is violated. How does that propagate?
- How do you preview Way Day prices internally a day early without leaking them?
- Two coupons stack unexpectedly and cost millions. How would you prevent and detect that?
- How would you roll the cutover back if the price file is wrong?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: price for (SKU, customer, time) = list price, then scheduled event price, then eligible promotions and coupons, with a margin floor. Prices must switch at a scheduled instant. Non-function...
High-Level Design
- Pricing admin + rules store: merchandisers schedule events and promotions.
- Price compiler (batch): ahead of each event, compiles a full snapshot `price_version -> {sku: base_price, badges}...