Question bank

No. 42 · Transactions & inventory

Design a giveaway for 6 million free items in one hour

Advanced40 minHot keys · Concurrency control · Rate limiting · Back-pressure · Idempotency · Sharding & partitioning · Security

Your sketch
Opening the sketchbook…

OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES

Further reading

Walkthrough reading

At least one vetted end-to-end walkthrough or mock interview is linked. Links go to other sites; we credit and describe them rather than copy them.

  1. How to Solve Design a Free Food App

    interviewing.io · Adam BhulaArticleFull walkthroughFreeVetted

    Written solution to the exact 6M-burger prompt: estimates the load, then hands out claims from pre-split counters so no single row is hot. Strong on atomicity; light on abuse and notification.

    Link checked 2026-12-06

  2. System Design Interview (Free Food App) with a Google engineer

    interviewing.ioMock interviewMock interviewFreeVetted

    Full transcript of a mock on the same prompt with a Google engineer, including the interviewer pushing on duplicate claims and the 20M-user spike. Shows what follow-ups to expect.

    Link checked 2026-12-06

  3. Surviving Flashes of High-Write Traffic Using Scriptable Load Balancers (Part I)

    Shopify Engineering · Emil StolarskyEngineering blogPartialFreeVetted

    Shopify on surviving flash sales by throttling checkout at the load balancer so the database only sees what it can finish. About admission control, not the counter.

    Link checked 2026-12-06

  4. Using load shedding to avoid overload

    Amazon Builders' LibraryEngineering blogBackgroundFreeVetted

    Why rejecting excess work early keeps goodput up during a spike, and how to prioritise requests. General overload guidance, not giveaway-specific.

    Link checked 2026-12-06

  5. DECR (Redis command reference)

    RedisDocsBackgroundFreeVetted

    Reference for the atomic decrement behind an in-memory stock counter. You still need durability and per-user dedup around it.

    Link checked 2026-12-06

  6. SELECT, including the locking clause (FOR UPDATE, SKIP LOCKED)

    PostgreSQLDocsBackgroundFreeVetted

    Covers FOR UPDATE with SKIP LOCKED, the database-only way to let many workers claim distinct voucher rows without blocking. Reference text; dense.

    Link checked 2026-12-06

Report a bad or misleading link

Reference audit: 2 of 3 links from the audited catalog kept
  • reddit.com/r/softwarearchitecture/comments/xlztzr/interview_systems_de Confirmed via archive: only the question with no answers or comments, and the company is not named.

We audited the public catalog at systemdesign.io on 2026-12-06. Dropped links are not linked here on purpose.

COMPANY EVIDENCE · NOT A FREQUENCY CLAIM

Where it has been reported

Candidate reports

Catalog tags (unverified)

Google

Assigned by the reference catalog (audited 2026-12-06). We have not verified that these companies ask this question.

Report or add attribution evidence · How we label evidence

KEEP GOING

From our Learn guides

Related questions