Digital Game Distribution Platform
Design a global game store with publisher release ingestion, region-aware browse and search, retry-safe commerce, personal libraries, large build delivery, reviews, and bounded launch authorization.
Problem statement
For this exercise, assume a signed-in user can page through all games, browse by category, search for a game, acquire a paid title or a zero-price promotional offer, see the resulting entitlement in a personal library, install or patch the game, and obtain a short-lived authorization to launch it.
Some games are available only in specified regions, so browse and search results use an explicit region context and acquisition revalidates regional eligibility against authoritative title policy.
Catalog and promotion reads may be cached, but acquisition must validate authoritative versioned offer terms and record the accepted offer version. The platform serves more than 100 million registered users.
Major seasonal sales can spike browsing and checkout traffic 50 to 100 times, so discovery and checkout must survive a platform-wide surge, not only one popular title.
Authorized publishers can upload title metadata and immutable versioned build artifacts into a staged release workflow. A release becomes discoverable and downloadable only after validation and publication; updating a released game creates a new immutable build identity.
Each released build has an immutable signed manifest of content-addressed chunks, and a client marks it installed only after verifying the complete manifest.
The catalog, search, and content paths must remain usable when one game becomes disproportionately popular without making cached discovery an ownership or regional-eligibility authority.
Acquisition and refund commands use stable operation identities: one logical acquisition grants at most one entitlement, and one entitlement is refunded at most once.
An accepted full refund revokes future launch authorizations within five minutes; an authorization already issued remains valid only until its short expiry.
Payment-processor internals, taxes, social features, multiplayer hosting, recommendations, achievements, cloud saves, anti-cheat, developer settlement, and patch-generation algorithms are outside scope.
For this exercise, also assume each game has one or more stable category IDs and users can page through all games in a chosen category. Category, all-games, search, and review listings are discovery projections and cannot authorize a purchase or launch.
A signed-in user can create, replace or remove their own one plain-text review per title; purchasing is not required. Review text is 1 to 1,000 characters, and responses use an existing public display name rather than exposing account email or private profile fields.
A review mutation includes a stable operation key and the expected review revision; stale revisions conflict, identical retries return the original operation result, and changed input under the same key conflicts. Deletion retains a revision tombstone, so an old edit or replay cannot restore deleted text.
A new intentional review after deletion must use the current revision and a new operation key. Review listings are cursor-paginated in stable descending creation order with a review-ID tie-break; edits do not move a review, and a new post after deletion receives a new creation position.
They may lag committed writes by at most 30 seconds while healthy. A review author can always inspect their latest committed revision through the authoritative private read.
Moderation policy, ratings/ranking, voting, threaded replies and social graphs are outside scope; treat text as untrusted plain text, enforce ownership and bounded write rates.
What to build
- Users can page titles by category, idempotently acquire a current paid or promotional offer, even in a sale surge, and create, replace or remove their own plain-text review with retry-safe checks.
- Users can list active entitlements and install or update an entitled title through resumable, integrity-verified full-build or differential-patch delivery.
- An entitled user can obtain a short-lived launch authorization, while an ineligible or refunded entitlement receives an explicit denial.
- An eligible acquisition can be refunded idempotently, with uncertain payment outcomes reconciled and future launch authorizations revoked after acceptance.
- Authorized publishers can stage and publish immutable game releases, while users can page through all region-eligible games or search them and the platform absorbs popular-title hotspots.
At scale
- Assume more than 100 million registered users and 10 million daily active users. For this exercise, assume 100,000 titles and, during a major seasonal sale, peaks of 100,000 catalog or library reads per second and 5,000 acquisition or refund commands per second. A sale can spike browsing and checkout traffic 50 to 100 times, so normal-day peaks are about 1,000 to 2,000 reads per second and 50 to 100 commands per second.
- Assume popular builds are 20 to 150 GB, patches usually replace 1 to 10 percent of a build, and a major release can drive 100 Tb/s of aggregate content delivery for several hours.
- Target 200 ms at the 99th percentile for cached catalog and library reads, 99.95 percent monthly availability for acquisition and refund commands, and no new launch authorization more than five minutes after an accepted refund.
- For this exercise, assume peaks of at most 100 review mutations per second and 20,000 review-list reads per second within the stated metadata-read capacity. Healthy review projections reflect accepted edits and deletion within 30 seconds; author readback is authoritative. Keep review revision tombstones and stable operation outcomes for the lifetime of the title.