← Questions
Design a low-latency product price update API
0
I was asked this
No reports yet. Sign in to say where you were asked it.
A system design interview question asked in Microsoft's system design round, last asked Apr 2026. It tests api design, low latency and caching.
Design an API and serving system for product prices. Each product's price changes at most once every 24 hours, but a product launch page must read prices for many products at once, at very high traffic and with low latency. Readers must never see a half-applied or inconsistent price.
Requirements
- Functional: update the price of specific products (single and bulk); read the current price of one or many products; schedule a price for a future time; roll back a bad update.
- Non-functional: reads vastly outnumber writes; low read latency for batch requests from the launch page; a published price is consistent across the page, cart and checkout; updates become visible quickly and predictably.
Clarifying questions
- How many products does the launch page show, and what are the traffic and latency targets?
- Are updates scheduled ahead of time or entered by hand?
- Must every reader see a new price the instant it is published, or is a short delay acceptable?
- Does checkout need to honour the price the user saw?
- Are prices per region or per user?
What a strong answer covers
- A versioned price record (
product_id,price,currency,effective_from,version), written to a source-of-truth store, with idempotent update requests. - A read path built for the page: batch reads (
GET /prices?ids=...) served from an in-memory cache or a precomputed page payload, with a CDN in front when prices are not personalized. - Propagation: change events invalidate or refresh caches; scheduled prices are pre-loaded and switch at their effective time, so there is no stampede.
- Consistency between page and checkout: checkout re-reads the authoritative price or honours a signed, short-lived price quote.
- Bulk updates applied atomically per batch (a new price "version" that becomes current in one step) and rollback by re-pointing to the previous version.
- Latency budgets, cache hit rates and what happens when the cache is cold.
Follow-ups
- How would you support flash-sale overrides that start at an exact time?
- How do you roll back a bad bulk update in seconds?
- What cache key would you use for the launch page?
- How does the design change for per-user prices?
Where it's asked
- Microsoft · System design · Last asked Apr 202660 min · Design discussion
What it tests
api design · low latency · caching
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing
