KatInterview

Design a Game Distribution Platform with a Store, Library, and Downloads

System DesignModel answer
MediumModel answerSystem Designcdncontent-deliveryentitlements

Last updated

Design the core backend of a PC game platform: catalog browsing, purchasing, entitlement management, and large-file game delivery with delta updates.

Scenario

A PC gaming platform lets players browse a store, buy games, and download and play them through a desktop client. Developers publish new game builds and push updates. Your task is to design the backend systems that power this platform.

Assume the following core flows are in scope:

  • Catalog and store: players browse and search games; each game page shows regional pricing and metadata.
  • Purchase: a player buys a game; the game appears in their library only after payment succeeds.
  • Library and launch check: the client lists games the player owns and verifies ownership before launching any title.
  • Download and update: a player installs a game or receives a patch when a new build is released.
  • Developer publishing: a developer uploads a new build and makes it available to players, with the ability to roll back.

Before you dive in, clarify scope with your interviewer

Good clarifying questions anchor the rest of your design:

  • Are social features — friends, chat, activity feeds — in scope, or only store, library, and downloads?
  • What scale should you assume: number of registered accounts, peak concurrent users, total titles, and typical game install size?
  • Can players launch games while offline, and how strictly must ownership be re-verified at launch time?
  • Are seasonal flash sales and day-one worldwide launches (the hardest traffic spikes) in scope?
  • Does the publishing pipeline need staged rollouts or beta branches, or just a single production release per title?
  • Are in-game item purchases, gifting, and refunds in scope, or only full-game transactions?

What your answer should address

A strong response covers all of the following:

  1. A clean requirements split before any architecture decisions
  2. A read-heavy catalog path optimized for caching and regional pricing
  3. A purchase and entitlement flow that grants ownership exactly once, even under failures
  4. Content delivery for large versioned builds: chunking, deduplication, delta patches, and CDN strategy
  5. A data model covering catalog entries, orders, entitlements, and build manifests
  6. Failure handling for payment provider outages, CDN issues, and interrupted downloads
  7. How the system behaves during peak load — a major game launch or a site-wide sale

Hints

Hint 1

The catalog is read-heavy and rarely changes; think about where caching and a CDN fit into the read path, and what cache invalidation looks like when a price changes for one region.

Hint 2

A purchase must create an entitlement exactly once even if the client retries or the payment webhook arrives twice. Walk through what happens when the payment succeeds but your database write fails, and how you recover.

Hint 3

Game builds can be 50–100 GB. Storing and transferring them as single blobs doesn't work. Think about how you'd chunk a build, deduplicate chunks across versions, and send only a delta patch when an update ships rather than the full file.