13 Services, One DynamoDB Table — And the Three That Said No
We said every service keeps its own table. We were wrong. Here's the single-table design actually running in production, and the three services that opted out of it on purpose.
Our first post said each of our backend services keeps its own DynamoDB tables. We'd said it from memory, the way you describe a house you built two years ago without walking through every room again. So for this post we actually walked through the rooms — a read-only pass over the live production account — and the claim didn't survive contact with what's really running.
What's actually there: six tables, not sixteen
Our backend is organised as around sixteen independently deployed services — league, player, franchise, auction, user, association, authenticator, notification, guest, admin, payment, team, tournament, schedule, a football scoring service, and the socket layer behind the auction room. Listing every DynamoDB table in the account turns up exactly six.
One of those six — we'll call it the application table — is written to by thirteen of those sixteen services: league, player, franchise, user, association, authenticator, notification, guest, admin, payment, team, tournament and schedule. One shared table, one shared key space, a classic DynamoDB single-table design — the pattern where unrelated-looking entities (a league, a player profile, a franchise invitation, a notification preference) live as rows in one table, distinguished by a partition key prefix rather than by which table they're in.
PK SK (attributes...)
LEAGUE#8f2a METADATA name, sport, status
LEAGUE#8f2a FRANCHISE#c91 name, ownerId
LEAGUE#8f2a PLAYER_REQUEST#44 status, requestedAt
USER#901 PROFILE name, phone
USER#901 DEVICE#ios-a1b2 pushToken
// One table. Every service reads and writes the prefixes it owns,
// and never the ones it doesn't.Three services keep a table of their own: the live auction engine, the socket layer that tracks who's connected to a room, and a football-scoring service we added later. None of that is an accident, and none of it is inconsistency either — each is opting out for a reason specific to what it does.
Why thirteen services share one table
Most of what those thirteen services do is CRUD with relationships: a league has franchises, a franchise has players, a player has requests across several leagues. In a relational database that's a handful of tables and a join. DynamoDB has no joins, so the single-table answer is to pre-shape the key so that "give me everything under this league" is one query, not a fan-out across tables — a franchise row and a player-request row for the same league share a partition key prefix, so reading the league's whole context is one request whether the rows came from the league service's own writes or an association request another service wrote.
It also means standing up a thirteenth service — the way admin, payment and the archival jobs each got added later — needs nothing new at the storage layer. No new table, no new IAM role granting Lambda access to a fresh resource, no new backup policy. It picks a partition-key prefix nobody else is using and starts writing. The cost is discipline: the prefix you choose is forever, and two services quietly reusing the same prefix for different things is a collision you won't see until someone reads the wrong rows back.
Why three services said no
The auction: because it writes hard, for a few hours, on purpose
The application table is built for "read a lot, write occasionally, and reads usually want a whole related cluster of rows." A live auction is the opposite — a burst of conditional writes to the same few rows (a team's remaining points, a lot's status) from many bidders at once, exactly the access pattern we wrote about in our transactions post. Giving the auction its own table doesn't change DynamoDB's per-item throughput limits, but it does mean an auction under load shares nothing — not even read capacity accounting — with thirteen other services going about their ordinary day. A noisy auction can't make a league page load slowly.
The socket layer: because its rows are supposed to disappear
Tracking who's currently connected to a room is a different kind of data entirely — every row is meant to expire within minutes of being written, whether that's a clean disconnect or a phone that lost signal mid-auction. Mixing rows with that lifecycle into a table full of league records that should live for years is asking for a TTL policy to be configured correctly on a per-item basis forever, instead of once, on a table that holds nothing else.
Football scoring: because it arrived with its own shape already
The newest of the three is the simplest case: a bounded domain — live match events, scores, a derived clock — added well after the application table's key design had settled. It still reads player profiles out of the shared table where it needs a name or a photo, but it owns nothing in it. Forcing a late addition into an existing key scheme it wasn't designed for is how you end up auditing every other service's partition key just to add one feature; giving it a table of its own cost one line in a CDK stack.
What we'd actually tell someone copying this
Single-table design earns its reputation for being confusing to learn and cheap to run once it's built — both are true here. The part worth taking away isn't "share a table" or "don't" as a rule to apply everywhere; it's that the decision is per-service, made against that service's actual access pattern, and the three exceptions we have all failed the same test: would putting this in the shared table make something ELSE slower, messier, or harder to reason about? When the answer was yes, a table costs nothing extra to stand up and buys real isolation. When the answer was no, one table for thirteen services is thirteen fewer things to provision, back up and get wrong.
And the honest footnote: we only know this today because we went and read our own production account instead of trusting what we remembered writing. That's probably the real lesson.
See the data behind a real league
Run a free practice auction in your browser — no sign-up required to watch, no real money anywhere in the bidding.
🎯 No real-money auctions · Pure strategy · Free to download