Restock waitlist
L2–L4
Level range
7
Sprints
35
Tasks
Backend and frontend
Built as
What you’ll build
A waiting list for sold-out stock. Shoppers join the line and can leave it. When three come back in, the first three in line each get one held for them and are told once. A hold nobody claims passes to the next person by itself.
A skill in every sprint
You show you have it in a pull request your team reviews, then explain it in a walkthrough.
Stock that cannot go negative
You can decrement stock on a sale and prove that a hundred simultaneous orders for ten items produce ten sales and ninety refusals.
An order that moves through states
You can move an order through its states, refuse a transition that should not happen, and show the history of how it got where it is.
Notifications people do not mute
You can notify a user when an event concerns them, show an unread count that survives a refresh, and honour a preference that says stop.
Background jobs
You can hand work to a worker, tell the user it is in progress, and show the result when it lands — and say what happens to that work if the process dies halfway.
Email verification
You can issue a verification link, activate the account when it is followed, and explain what the link contains and why it cannot simply be a user id.
Going live
Somebody who has never met you can open a URL and use the product — and you can say what is different about the copy running there, where its secrets come from, and what you do when a release turns out to be wrong.
7 sprints, 35 tasks
Every sprint has a goal and a set of tasks. Open a sprint to see the tasks you will pick up.
- Sprint 01
The shelf
The shop has things with a count, and a thing at zero shows as sold out, not missing.
5 tasks
- Give the shop owner a sign-in that shoppers cannot use
- Let the shop owner add things to the shelf with a count
- Show shoppers what is in stock and what is sold out
- Let a shopper buy one unit, and lower the count
- Make sure two shoppers buying the last unit at once gives one sale
- Sprint 02
A place in the line
A shopper asks to be told when a sold-out thing comes back, and can stop waiting whenever they like.
5 tasks
- Let a shopper join the line for a sold-out thing without an account
- Keep each email address in a line only once
- Let a shopper leave the line with one button and no account
- Define the states of a place, and stop an ended place coming back
- Show the shop owner who is waiting for each thing
- Sprint 03
Three units, fifty people
Stock that comes back is held for the people at the front of the line, and nobody else can buy a held unit.
5 tasks
- Record each delivery of stock as an event
- Hold one unit each for the first people in line when stock arrives
- Stop shoppers buying a unit that is held for somebody else
- Let the person holding a unit reserve it
- Put leftover stock on sale when more arrives than people waiting
- Sprint 04
Telling them once
The person whose unit is held gets one email, and it is still true when they open it.
5 tasks
- Email each person whose unit is held, saying when the hold ends
- Send no email to people further down the line
- Make sure a second delivery does not email the same person twice
- Show what is true now when somebody opens an old email
- Show the shop owner who was emailed and when
- Sprint 05
Nobody is watching
A hold nobody uses ends by itself and passes to the next person in line, with nobody pressing anything.
5 tasks
- End a hold by itself when its time runs out
- Pass a freed unit to the next person in line
- Make repeated background work send one email and create one hold
- Show the shop owner when the background work stops or fails
- Decide fairly when somebody reserves at the second their hold ends
- Sprint 06
An address that is really theirs
A place in the line is only offered a unit once its owner has confirmed they can read the email address they gave.
5 tasks
- Offer units only to places whose email address has been confirmed
- Count each person's position from when they asked, not when they confirmed
- Help a shopper whose confirmation email has not arrived
- Make confirmation links impossible to guess or reuse
- Let somebody who never asked stop the emails
- Sprint 07
Where the shop actually is
The shop is on the internet at its own address, and the line keeps moving while the laptop is shut.
5 tasks
- Put the shop online so a stranger can use it
- Move every setting and secret out of the code and into the environment
- Send real emails that reach the inbox and link to the live shop
- Keep the line moving on the live shop with nobody signed in
- Make a bad release easy to undo without losing open holds
Read before you build
Senior engineers read the docs before they touch the code. Every Blueprint comes with short documents on the product and its world, the kind a team hands a new hire. Read them well and you ask sharper questions and walk into every review prepared.
What you are building
The product, the two kinds of people who use it, and the three parts that make it hard.
How a restock waitlist actually works
What a waiting list gives a shop, the three ways to hand out stock that comes back, and why the hold time and the number of holds must be chosen together.
More commerce Blueprints
Corner shop storefront
An online shop for one small corner shop. The shelf shows what is really in stock, a basket is still there the next day, the shop never takes money for something it does not have, and the shopper can follow their order until they collect it.
Food ordering with options
Online ordering for one restaurant, where a dish is a set of choices, not a single price. A size sets the price, extras add to it, some extras only come on some sizes, and the total is worked out by the server from what the customer chose, never taken from the browser.
Event ticketing with door check-in
Tickets for one event. They sell until the set number of tickets runs out, every ticket has its own code, and the door lets each code in once, even when the signal drops.
Not the one for you?
Every Blueprint is planned the same way, across health, shopping, money, education and more.
Browse all BlueprintsBuild restock waitlist.
Start your free week. Adaeze runs your kickoff, and Lars reviews every pull request.
Start today, for free