All BlueprintsCommerce

Restock waitlist

A waiting list for what a small shop has run out of. People ask to be told when it returns, and when three come back the stock goes down the line in the order they asked: held long enough to act on, offered to nobody behind them until that window closes, and never offered to the same person twice.

L2–L4Level range
7Sprints
35Tasks
Backend and frontendBuilt as

What you’ll build.

By the last sprint

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 on its own.

What you’ll learn.

Each sprint is built around one skill. 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.

The roadmap. 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 reads as sold out rather than missing.

5 tasks
  1. The shop has a way in that a shopper does not
  2. The shop puts things on the shelf
  3. A shopper sees what is here and what is gone
  4. A shopper takes one and the count falls
  5. Two shoppers, one unit: one buys and one is told
Sprint 02

A place in the line

Somebody asks to be told when a sold-out thing comes back, and can stop waiting whenever they like.

5 tasks
  1. Asking to be told, without making an account
  2. Asking twice does not make two places
  3. Stopping waiting takes one press and no account
  4. A place that has ended never comes back
  5. The shop sees who is waiting
Sprint 03

Three units, fifty people

Stock coming back is held for the front of the line, and nobody else can buy what is being held.

5 tasks
  1. Stock coming back is an event, not a bigger number
  2. Three arrive, three are held, for the first three
  3. A held unit is not for sale
  4. The person at the front can take the one being held
  5. More stock than line
Sprint 04

Telling them once

The person whose unit is held is told, once, and the message is still true when it is opened.

5 tasks
  1. The message that says one is yours until a time
  2. Nobody behind them is told anything
  3. A second delivery does not tell the same person twice
  4. Opening it late tells the truth
  5. The shop can see who was told and when
Sprint 05

Nobody is watching

A hold nobody uses ends on its own and passes to the next person in line, with nobody pressing anything.

5 tasks
  1. A hold that is not used ends on its own
  2. The unit passes to the next person in line
  3. Repeating the work does not repeat the message
  4. The shop finds out when the line stops moving
  5. Taking it at the second it expires
Sprint 06

An address that is really theirs

A place in the line belongs to somebody who can read the address it was asked from.

5 tasks
  1. A place is not offered anything until the address answers
  2. Where the position clock starts
  3. The confirmation has not arrived yet
  4. A confirmation cannot be guessed or used twice
  5. Somebody who never asked can make it stop
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
  1. A stranger can reach the shop without you
  2. The values that only existed on the laptop
  3. Messages genuinely leave, and point at the live shop
  4. The line keeps moving with nobody signed in
  5. A release that was wrong can be undone

Read before you build. The best engineers do.

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 people who use it, and what finished means.

How a restock waitlist actually works

Domain you will not have: what the shop is really buying, the three ways stock gets released, and why the window and the batch size are one decision.

Build restock waitlist.

Start your free week. Adaeze runs your kickoff, and Lars reviews every pull request.