AWS Builder Center
DynamoDB Data Modeling Challenge #1 - Results

DynamoDB Data Modeling Challenge #1 - Results

Highlighting successful data models submitted to The Virtual Waiting Room - Fairly Queuing 1 Million Fans Under Extreme Load

DynamoDB Solutions Architect
When we launched the first DynamoDB Developer Design Challenge, we handed the community a deceptively simple prompt: design a virtual waiting room that fairly queues 10 million fans arriving in seconds for a high-demand ticket sale, then promotes them to purchase in controlled batches without a single lost or duplicated fan.
Many submissions shared similar themes but took very different approaches from one another. The same constraints produced wildly different architectures, each making its own bet about where to spend complexity. Here are three submissions that we thought were worth highlighting.


1. Deferring Order Until the Stampede Is Over
Most people's instinct when asked to "assign queue positions" is to hand out numbers as fans arrive. This submission's central idea was to instead refuse to do any ordering work during the burst at all.
The design splits the problem into three planes: Absorb, Sequence, Serve
Absorb: Each fan's entry is written with a partition key of FAN#<uuid>. Because UUIDs are uniformly distributed by construction, one million writes per second spread evenly across every partition in the table using a conditional PutItem that's idempotent by design. There's no hot partition to mitigate because none can physically form. Heat is concentrated in the GSI used for sequencing, but that will be sharded,
Sequence: A background sequencer reads fans from a 2,048-shard sparse GSI. This heavily sharded GSI absorbs the heat of initial rush and is used to assign integer positions asynchronously.
Serve: Promotion advances a single servingPosition threshold. A fan is eligible if their position is ≤ the threshold. This means promoting a batch of any size costs exactly one write.
Fairness is handled with 1-second arrival buckets and a cryptographic tie-breaker. Fans in the same bucket are ordered by a random lottery, so a bot firing 1ms after the gate opens has the same position distribution as a human tapping 800ms later. The author even quantifies clock skew (Amazon Time Sync keeps fleet skew three orders of magnitude below the bucket width) and backs the whole thing with a 10-million-fan discrete-event simulator.
This entry stands out as one of the best expressions of a core DynamoDB principle to distribute heat, push all coordination onto partitions you keep deliberately cold.


2. Checking Eligibility Without Ever Touching the Database
Amit Kumar :  Passive Promotion 
Like the submission above, this design promotes fans by advancing a single marker rather than writing to each fan's record — here the marker is a watermark timestamp instead of a serving position. That "move the line, not the fans" pattern turned out to be a shared insight across the strongest entries. What makes this submission genuinely distinct is where it evaluates eligibility.
In most designs a fan checks their status by reading from DynamoDB (typically through a cache like DAX). In this submission, however, the "is it my turn?" check never hits the backend at all.
The mechanism, which the author calls Zero-Write Passive Promotion, gives every fan a cryptographically signed JSON web token (JWT) containing their server-issued entry timestamp when they join the queue. The system maintains a single global watermark timestamp in DynamoDB. Everyone whose entry timestamp is at or before the watermark is eligible. To promote the next batch, the system advances that watermark value. Eligibility is verified at the CloudFront edge, where a CloudFront Function compares each fan's signed JWT against the watermark. Because the token is self-describing and tamper-proof, the check needs no DynamoDB read at all, the check happens entirely at the CDN.
A background aggregator builds a "time-density map" (how many fans arrived per second) so the promotion engine knows exactly how far to advance the watermark to admit precisely the number of open slots. The result is an eligibility check that scales to billions of requests and reduces read volume from one of the hottest paths in the entire design  —  millions of fans repeatedly polling "is it my turn?"
Lots of designs make promotion cheap. This one also makes verification cheap by pushing it to the CDN. A signed token that carries its own proof of position turns status polling into an edge-cached computation.


3. A Fully Deployed, End-to-End System
Muhammad Affan bin Aamir:  Football Virtual Waiting Room 
Plenty of submissions were excellent data** models, but this one was a running product.
It's the only entry with a live, deployed AWS environment including a CloudFront single-page app talking to API Gateway and Lambda over a single-table DynamoDB backend, all provisioned via SAM. Behind the clean data model (six entity types, three purpose-built GSIs, write sharding via EVENT#<id>#SHARD#<nn>) sits a genuinely complete engineering package including10 Lambda functions across a six-phase implementation, unit, integration, and API tests plus a 1-million-request async load test, a postman collection, seed scripts, and a cost-optimization writeup.
The design also demonstrates good instincts for scale: queue positions are immutable once assigned (only status changes are written afterward), keeping write volume flat as the queue grows, and TTL handles session and token expiry without cron jobs.


The Bigger Picture
Three highlighted submissions, each with unique approaches to the problem.
One interesting observation is that both solutions 1 and 2 independently converged on the same underlying promotion strategy of advance a single marker (a serving position, or a watermark timestamp) instead of writing to every fan's record, so promoting any number of fans costs one write. Two developers arriving at the same elegant O(1) idea from different directions but differing on how order gets assigned or how how eligibility gets checked shows that there are often multiple different paths to a successful implementation. None of these is the "one right answer". The same core design principles lead them to success, but the differences may be tuned to the specific environment and unique requirements of a fully fleshed out use case.
Winners
The highlighted solutions are among many great submissions. Below are all submitted models that passed requirements:
Ready to try the another one? Challenge 3,  The Stadium Concessions Express — 100,000 Hungry Fans, Zero Lost Orders , is live now, and it picks up right where the waiting room ends: how do you feed 100,000 fans as quickly as possible?
Join the  NoSQL Launchpad in Builder Center  — that's where AWS NoSQL specialists knowledge share, review designs, and help teams pressure-test their DynamoDB configurations before the stakes are real.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article