Skip to content

ONE QUESTION. YOUR REASONING.

Design a flash sale

Design the checkout for a flash sale: Nike drops 10,000 pairs of a limited shoe at noon, and tens of millions of people try to buy within seconds.

System designShopping, tickets and bookingSeniorStaff

YOUR BRIEF

What to work through

Work through a flash sale as a spoken system design interview. Start by clarifying the scope, sketch a working design and explain the trade-offs behind your choices.

  • View the sale item
  • Secure one unit for a limited time while the sale runs
  • Pay for a secured unit to complete the purchase

BEFORE YOU START

Constraints to discuss

  • Never sell more than the 10,000 units in stock
  • Survive tens of millions of users arriving within seconds
  • Fair access: bots and fast clicks should not take every unit
  • A secured unit that is not paid for goes back on sale
Need a starting point?

Watch for these common gaps as you prepare:

  • No reservation step: holding stock inside a database transaction while the payment runs
  • Read the stock, then write it, without an atomic step
  • Letting every request reach the backend when only 10,000 can buy
  • No plan for units whose payment never comes
Read: System design questions and who asks them

Why this question is in the collection

These sources connect the problem to company interview reports or preparation guides. They do not guarantee what a company will ask you.

KEEP GOING

Your next question

Storage, files and linksDesign BitlyInfrastructure and platformDesign a rate limiterInfrastructure and platformDesign an A/B testing platformInfrastructure and platformDesign an ad click aggregator
Browse the collection
01

Pick a question

Read the brief and choose what you want to work on.

02

Talk it through

Explain your thinking. Respond to follow-ups. Draw when a design needs it.

03

Find your next improvement

Use the feedback from your interview to decide what to practise next.