Skip to content
syntaqx

Gaming, chapter 17 of 31

Live Operations

Running a game that changes every week: patches, hotfixes and server-side overrides, seasons as dated content, flags, experiments, version skew and incidents.

21 min readUpdated

A boxed game shipped once. A live game ships constantly: a balance patch every couple of weeks, a fix the day after, an event that starts at a set instant around the world, a store that rotates daily, a season that ends and resets the ladder, and every so often a change that breaks something for millions of players at once. Live operations is the discipline of changing a running game safely and on schedule, and the system underneath it decides how fast a change can reach players, how many players it can hurt, and how quickly it can be taken back.

This chapter covers the paths a change can take (client patch, hotfix, server-side data, configuration), the cadence that organizes them, seasons and events as effective-dated content, flags and remote config, experiments, the version skew that every path creates, maintenance and player communication, incidents in a game that can't stop running, the end-of-service runbook for when it finally does, and the tables that hold it together. It links out for the rest: how builds get to players' disks, channels and the minimum client version are in Patching & Content Delivery; the backend services, launch-day failures and login queues are in Game Backend Architecture; experiment metrics and assignment are in Game Metrics; and compensation grants are in Inventories, Entitlements & Economies.

Four Ways to Change a Running Game#

Every change to a live game travels one of four paths, and they differ by an order of magnitude or more in speed and in what they can touch:

Path What it changes Players must Typical speed
Full patch Client code and assets, server builds, data Download, then restart The patch cadence
Hotfix A smaller client or server build between patches Download (client) or nothing (server) Hours to days
Server-side data change Numbers and scripts the game server loads Nothing Minutes to an hour
Config or flag change Values and switches the services and client read at runtime Nothing Seconds

The line between the first and third paths is where the data lives. Riot's 2021 bug blog on Teamfight Tactics draws it for one game: client changes (art included) need a full patch, while server-side logic and numbers go out as a micropatch, an override file the game server loads at start that replaces the original by key, for PC and mobile alike; a damage-over-time bug that shipped ticking every 100 seconds instead of every second was fixed that way in about an hour. Its limit is the instructive part: overrides replace whole files, so two micropatches touching the same file conflict, and the fix has to carry both changes. Unreal Engine ships the same path as an engine feature: its hotfix manager downloads "non-executable files" (configuration, content packages and localization) from the title's online file storage and applies them to the running game, each file prefixed with the platform it targets. Unity's Remote Config and PlayFab's title data, below, do it as hosted services. The common constraint is the word non-executable: data and configuration can move without a build, code can't.

The hotfix path itself gets faster as delivery does. Riot's 2019 post on League's new patcher reports deploying a new version "in less than a minute instead of the five hours it used to take," which it calls "a massive win" for hotfixes; delivery mechanics are in Patching & Content Delivery.

The design lesson is to make the cheap paths able to carry as much as possible. Numbers that designers tune (damage, cooldowns, prices, drop rates, reward amounts, queue settings) belong in server-side data or config, read at match start or at runtime, so that most fixes never need a build. Logic that might need an emergency off switch sits behind a flag. Only what truly lives on the player's machine (code, art, audio, local UI) should need a download. My rule: every change goes out by the cheapest path that can carry it, and when a fix can only go out by a slow path, that's a design bug worth logging even after the fix ships.

Cadence#

A schedule is a product decision as much as an engineering one. Riot publishes League of Legends' patch schedule: in 2026, 24 patches numbered YEAR.PATCH (26.01 to 26.24), released on Wednesdays Pacific Time unless marked otherwise, with a promise to post an alert if a patch is delayed within 48 hours of its date. A fixed cadence lets every group plan against the same dates: designers know when balance changes land, the content pipeline knows when a skin must be locked, esports knows which patch a tournament will use, players know when to expect change.

NOTES: (UNLESS OTHERWISE SPECIFIED) 1 DATES FROM ONE GAME'S PUBLISHED 2026 PATCH SCHEDULE (PACIFIC TIME); THE PUBLISHER NOTES DATES CAN MOVE. 2 SERVER DATA OVERRIDE: NEW VALUES OR LOGIC LOADED BY GAME SERVERS, NO CLIENT DOWNLOAD (A PUBLISHED MICROPATCH). 3 CLIENT HOTFIX: A NEW BUILD PLAYERS MUST DOWNLOAD BEFORE THEY CAN PLAY. EVENT TIMINGS ARE ILLUSTRATIVE. 4 CONFIG FLIP: A FLAG OR REMOTE CONFIG VALUE, LIVE IN SECONDS, NO BUILD AND NO SERVER RESTART. VALUES IN DAYS. THE DRAWING CARRIES CODES; VALUES AND FORMULAS ARE IN THE TABLE. 26.19 26.20 26.21 26.22 26.23 26.24 C1 1 I1 I2 I3 I4 I5 SEP 23 OCT 7 OCT 21 NOV 4 NOV 18 DEC 9 DETAIL A PLAN VIEW · PATCHES 26.19 TO 26.24 SCALE 1 DAY = 7 PX · TIMELINE · 2026 26.20 26.21 CLIENT SERVER CONFIG HOTFIX 3 OVERRIDE LIVE 2 FLIP 4 EVENT LIVE H1 D1 E1 DETAIL A · INSIDE 26.20, THREE PATHS SCALE 1 DAY = 35 PX · ILLUSTRATIVE EVENTS 3 VARIABLES · DAYS CODE VARIABLE VALUE C1 cycle, 26.19 (Sep 23) to 26.24 (Dec 9, 2026) I1+…+I5 = 77 I1…I4 each interval, 26.19 to 26.23 14 I5 interval, 26.23 to 26.24 21 N1 patches scheduled in 2026, 26.01 (Jan 8) to 26.24 24 A1 mean interval, 335 days from Jan 8 to Dec 9 335 ÷ (N1 − 1) = 14.57 D1 patch to server-side override (illustrative) 1 H1 patch to client hotfix (illustrative) 6 E1 event start to next patch (illustrative) 6 A dimensional drawing of a live game's patch cadence. A plan view lays League of Legends patches 26.19 to 26.24 on a 2026 timeline as five intervals, four of 14 days and one of 21, chained to a total cycle of 77 days. A detail view zooms into one 14-day interval with three lanes, client, server and config, and marks an illustrative server-side override one day after the patch, a client hotfix six days in, a config flip and an event window running to the next patch. A variable table defines every code, including the 24 patches scheduled in 2026 and their mean interval of 14.57 days.
The patch train sets the rhythm, but most changes ride faster paths between trains: a server-side override in minutes, a config flip in seconds, a client hotfix only when the client must change.

The schedule isn't perfectly even, and the drawing shows why that matters. Most intervals are two weeks, but the gap before the year's last patch is three, and four of the year's patches move to a Thursday. A train schedule has to be data your tools read, not an assumption that "patches are every two weeks," because content locks, event dates and test plans are computed from it.

Inside a cadence, the train holds what needs a build and everything that can wait. What can't wait goes out of band by the fastest path that can carry it, with its own lighter review, and the next train absorbs it so the out-of-band change isn't lost or reverted. That merge back is easy to forget: a micropatch that overrides server data has to be folded into the source data before the next patch, or the next patch quietly undoes the fix.

Seasons and Events Are Dated Content#

Seasons, battle passes, limited-time modes, holiday events, store rotations and double-XP weekends are all content with a start and an end. Treat them as effective-dated data, not as code that someone remembers to switch on (Effective Dating & History).

The pattern is to ship dark and activate by date. The event's assets go out in an earlier patch, invisible; its definition (start, end, regions, rewards, the modes or store entries it enables) is data with a valid_during range; when the range opens, services and clients start honoring it, and when it closes, they stop. Unity's Remote Config documentation lists exactly this use: to "Turn on or off seasonal, holiday, or other time-sensitive events." Vendor backends model the time-boxed parts directly; Nakama, for one, offers seasonal leaderboards and tournaments.

CREATE TABLE live_events (                  -- one version of one event; a change is a new version
  id                  UUID PRIMARY KEY DEFAULT uuidv7(),
  tenant_id           UUID NOT NULL,
  game_id             UUID NOT NULL REFERENCES games (id),
  code                TEXT NOT NULL,          -- 'winter_2026'
  version             INTEGER NOT NULL,
  start_rule          TEXT NOT NULL CHECK (start_rule IN ('global_instant', 'local_time')),
  min_client_build_id UUID REFERENCES builds (id),
  config_overrides    JSONB NOT NULL DEFAULT '{}',  -- keys validated against the config schema
  rewards             JSONB NOT NULL DEFAULT '[]',  -- granted as a campaign: Economies
  approved_by         TEXT,                   -- null while draft
  approved_at         TIMESTAMPTZ,
  cancelled_at        TIMESTAMPTZ,
  UNIQUE (tenant_id, game_id, code, version)
);

CREATE TABLE live_event_windows (           -- where and when one event version runs
  id            UUID PRIMARY KEY DEFAULT uuidv7(),
  tenant_id     UUID NOT NULL,
  live_event_id UUID NOT NULL REFERENCES live_events (id),
  region        TEXT NOT NULL,
  starts_local  TIMESTAMP,                  -- start_rule = 'local_time': wall clock ...
  ends_local    TIMESTAMP,
  time_zone     TEXT,                       -- ... in this IANA zone
  valid_during  TSTZRANGE NOT NULL,         -- the instants, UTC; computed for local_time
  UNIQUE (live_event_id, region)
);

An event has no status column to flip. It is a draft until approved, scheduled until its window opens, live inside it and over after it, and every service computes that from the window and the clock, so nothing depends on a job running at midnight. Cancelling sets cancelled_at; changing a live event's rewards or end publishes a new version, so a player's claim can always name the version it was made under.

Three details decide whether events work:

  • Which instant. A global event starts at one instant everywhere, which is midnight somewhere and lunchtime somewhere else. A local-time event starts at a different instant in each region, so each window stores the wall-clock time and the zone, and valid_during is recomputed whenever the time zone database changes (Time & Date Formats). Decide per event and store the decision.
  • Which build. An event whose client assets aren't on a player's disk can't show; min_client_build_id keeps the event invisible to older clients rather than crashing them.
  • Testing in time. An event that only works on its start date can't be tested until it's too late. Every service that reads dated content takes its "now" from an injectable clock, so a test environment can run at next Tuesday 00:00 UTC and play through the whole event, including its end.

Event starts are also load events. Everybody who wants the new mode, the new skin or the first-day reward arrives at the same instant; that shape belongs in capacity planning, as the Clash incident below shows.

Flags, Kill Switches and Remote Config#

The general practice of feature flags (types, lifetimes, progressive rollout, cleanup) is in Feature Flags & Progressive Rollout. Games lean on two flag types more than most software.

Kill switches in a game disable a piece of content or a system without a build: a character pulled from the pick screen because of a game-breaking bug, a game mode taken out of the queue list, a store item hidden, a crafting recipe disabled because it's being exploited, a trade feature shut off during a duplication incident. Each one has to fail safe for players already using it (a disabled character in a match in progress plays out the match; a disabled store item already owned stays owned) and has to be listed in the runbook with exactly what flipping it does (Kill Switches).

Remote config is tuning without a deploy. Unity describes Remote Config as a service "to tune your game design without deploying new versions," built from namespaced key-value parameters with overrides that "control which players receive what settings updates, and when"; PlayFab's title data does the same for "game configuration remotely"; Unreal's hotfix manager, above, does it with files; and Riot's service platform pushes runtime configuration and game data to services and game servers, so a champion data fix that once "required a full redeploy of the game" became a tweak without downtime. Whatever the product, remote config is a deploy wearing different clothes, and the discipline (schema and bounds checks, versions and audit, shipped defaults with a cached last good value) is in Remote Config. Two parts are particular to games:

  • Bounds are game rules. A drop rate between 0 and 1, a price above zero, a cooldown no shorter than the animation: the schema for gameplay keys is written by designers and checked like code, because a typo in a tuning value can take a game down as surely as a bad build.
  • Applied at a defined moment. Game servers read gameplay config at match start, not mid-match, so both teams play by one set of rules (Riot's game servers pick up pushed game data at game start). A config version that services and game servers report in their telemetry makes "what was live in this match" a join.

Experiments#

An experiment is remote config with a control group: assign players to variants, give each variant different values, and compare outcomes. The statistics are general (Experimentation & A/B Testing), and the game-specific measurement (the account as the unit, crash-driven sample ratio mismatches, game guardrails, experiment_assignments) is in Game Metrics. What live ops owns is how a variant reaches the game:

  • A variant is a config overlay. It names config keys and values, layered over the published config version for the players assigned to it, so an experiment ships, pauses and ends through the same path as any config change, with the same schema checks.
  • One owner per key. Two experiments that override the same key at once interact; the config service refuses to start the second, which is the mechanical version of the mutually exclusive audiences managed platforms recommend.
  • Fairness is the product. I don't run balance experiments in ranked queues: two players competing for the same rank under different rules is a fairness problem before it's a statistics problem. Test balance in unranked modes, on test servers, or with the whole population at once and a rollback plan.
  • Prices are regulated. A test that shows different players different prices for the same item needs review against Loot Boxes & Consumer Law and the platform's terms before it runs.
  • The variant is part of the record. Every telemetry event carries the experiment and variant ids the player was in, so analysis never has to reconstruct assignment after the fact (Telemetry & Analytics).

Version Skew#

Every path above changes one layer of a system made of many: client builds, game server builds, dozens of backend services, configuration, content data, and on some platforms several client builds at once. At any moment those layers are at different versions, and live ops is mostly the management of that skew.

Cross-play makes it routine: a mobile-only fix that bumps the mobile client's version but not PC's leaves two client versions in the same matches, which is why the TFT team tests that "server and game clients can still communicate" after one. Unreal Engine builds the check into the network layer: FNetworkVersion generates a network version that by default is based on a checksum of the engine version, a game can override it, and IsNetworkCompatible decides whether a connection is accepted. Platform rules push the same direction; Xbox's public certification requirements say that "Game saves and player progress must continue to function following content updates," and titles must handle errors with Xbox and partner services gracefully.

A working design has a rule for every pair of layers:

  • Client and game server must match exactly for a match, in most games: the matchmaker only puts players with compatible network versions in a match, and the match's server build is pinned when it's allocated (Game Servers & Hosting; Matchmaking & Ranked).
  • Client and backend services overlap: services accept the current and previous client versions (N and N-1) during a rollout, versioned APIs make that explicit, and a minimum supported client version, enforced at login, retires older ones and triggers a forced update (Version Compatibility and Forced Updates owns client_version_policies).
  • Services and data change by expand and contract: add the new field or table, deploy readers, then writers, then remove the old (Zero-Downtime Migrations).
  • Config and builds are keyed together: a config value that only the new client understands targets builds that understand it, as min_client_build_id does for events.

Riot's 2020 post on its operations platform states the failure this prevents: "Allowing unaligned streams of changes into a distributed system will eventually lead to preventable incidents." Its answer, a versioned environment that deploys and rolls back every service of a shard as one set, is described in Game Backend Architecture. Live ops needs the release-side record of the same idea: one row per patch, hotfix or override naming the client builds, the server build, every service version, the config version and the content version that were tested and released together (Deployment Strategies). I call it a release set, to keep it apart from Patching's release_manifests, which describe one build's files; its table is in How to Build It.

Maintenance and Player Communication#

Not every change can roll. A database migration that can't be done online, a region move, or a patch that changes the network protocol for everyone at once can need a maintenance window, and how it's run is visible to every player.

A planned window has a sequence:

  1. Announce it in advance, in the client (a banner or message of the day), on the status page and on social channels, in each region's language and local time. PlayFab lists title communication (push, email, message of the day) as a live-ops feature for exactly this.
  2. Close the doors gently. Stop ranked queues first (nobody should lose rank to a server shutting down mid-match), then all queues, then logins, and let matches in progress finish or drain before servers stop.
  3. Do the work, then verify with internal accounts before reopening.
  4. Open in stages, by region or by percentage, so a login stampede doesn't recreate the outage the window was meant to avoid.
  5. Close the loop: a note on what changed, and compensation if the window ran long (Inventories, Entitlements & Economies covers campaign grants).

Unplanned problems follow the same rules faster. Riot's patch schedule page shows one form of the promise: if a patch slips within 48 hours of its date, an alert goes at the top of the page. The habit worth copying is a committed channel and a committed clock, so players know where to look and how long until the next update (Communicate on a Clock).

Incidents in a Live Game#

The general practice (declaring, roles, mitigation, postmortems) is in Incidents & Postmortems. Games add a property that shapes their worst incidents: load is synchronized by design. A patch day, an event start, a season reset, a tournament start time and a big streamer's broadcast each make large numbers of players do the same thing at the same instant.

Two public postmortems show the two forms of the fix. In Riot's 2020 postmortem of its Clash tournament launch, the format itself caused the outage, because simultaneous game starts "would overload systems like Champ Select"; besides a start limit derived from live CPU (Launch Day), the fix was a schedule, with players split into tiers that lock in at 30-minute intervals so game starts were staggered. Roblox's return to service after its 73-hour outage in October 2021 staggered admission instead: DNS steering let in "a certain percentage of randomly selected players," raised in "roughly 10% increments" while the team watched database load and cache performance, because with caches cold it "did not want a flood of traffic." A schedule spreads the peak before it happens; admission control spreads it when it arrives. Both are live-ops levers, not only infrastructure ones.

My rule: every dated thing live ops publishes (an event start, a season reset, a tournament round, a store rotation) has a declared expected peak, reviewed against measured capacity before approval, and a stagger by region or tier when the peak doesn't fit. The other public outages in Launch Day (Roblox's monitoring sharing its Consul dependency, Final Fantasy XIV's login cap, Pokémon GO's traffic at 50 times the target) point to the same rules for running a live game:

  • Plan for the synchronized peak, not the average: event starts, patch days and tournament starts are scheduled, so their load is predictable (Load & Performance Testing).
  • Admit players at a controlled rate. A login queue with an honest position and estimate is a feature; a stampede that knocks over authentication is an outage (Login Queues).
  • Keep monitoring off the critical path of what it monitors; Roblox's fix was that its telemetry systems "no longer depend on the systems that they are configured to monitor."
  • Mitigate with the fast paths first. The kill switch, the config change and the queue limit exist so the first response to an incident takes seconds (Mitigate First, Diagnose Later).
  • Make players whole deliberately. Undoing ranked losses from a broken server is a match.voided fact that ranked reverses (Game Results, Exactly Once per Match); restoring lost items and granting compensation run as audited campaigns, not ad hoc grants (Inventories, Entitlements & Economies).

End of Service#

The last thing live ops runs is the shutdown. It's a maintenance window that never reopens, and it has a runbook like one, stretched over months. What the law and the stores require of it (license disclosure, refunds, unspent currency, the EU and UK debates) is in When the Servers Shut Down; this section is the order of operations.

Decide, then date everything at once. The announcement sets every date that follows: when new players are turned away, when paid sales stop, when servers go off, how long data export stays up. Publicly announced notice periods vary widely:

Game Announced Servers off Notice
Concord (Sony) September 3, 2024 September 6, 2024 3 days, with full refunds
The Crew (Ubisoft) December 14, 2023 March 31, 2024 About 3.5 months
Knockout City (Velan Studios) February 2, 2023 June 6, 2023 About 4 months
XDefiant (Ubisoft) December 3, 2024 June 3, 2025 6 months
Anthem (EA) July 2025 January 12, 2026 About 6 months

Steam sets a floor for one case: a free-to-play game owes players "at least 90 days notice" before it's retired. My default is six months for a game people paid for, with the date fixed at announcement and never pulled earlier, the same rule as an API sunset (The Lifecycle).

Stop selling before anything else. New paid currency and real-money items go first, so nobody buys what they can't use. Knockout City removed real-money purchases when its final season began on February 28, 2023, more than three months before shutdown; Anthem took its premium currency off sale while letting players spend what they held; XDefiant stopped new downloads and registrations on the day of the announcement. Valve's guidance says the same: disable in-game purchasing and give players time to use remaining currency or items. The stop is a config change and a kill switch, tested like any other, and it covers every path that sells: in-game store, web store, platform catalog entries and bundles. The moment it takes effect is the cutoff for the unspent-currency query in Unspent Paid Currency at Shutdown.

Publish the refund policy with the announcement. Store policy and law set the floor; publishers have gone further, from Concord's full refunds to XDefiant's refunds of the Ultimate Founder's Pack and of any purchase in the 30 days before the announcement. Refunds run as an audited campaign through the same clawback path as any other (Refunds, Chargebacks and Clawbacks), never as hand grants.

Delist from every store. The mechanics are documented for the PC and mobile stores:

  • Steam: the developer asks Valve to retire the product through a request form; Valve hides the purchase option, the game stays in owners' libraries and can still be downloaded, installed and launched, and selling Steam keys elsewhere has to stop, with unsold keys banned through the key tool.
  • Apple: removing the app from sale takes it off the App Store within 24 hours; users who downloaded it keep receiving updates and can redownload it from purchase history "as long as the necessary contract remains active." In-app purchases are taken off sale separately.
  • Google Play: unpublishing hides the app from new users while existing users keep using it and receiving updates.
  • Consoles: delisting runs through each platform holder's partner channels, whose terms aren't public; plan it with the platform account manager.

The order matters: an end-of-life patch still has to reach players after the store listing is gone, and on all three documented stores existing owners keep receiving updates, so delist the purchase, not the update channel.

Run a final season, then close the doors. A last season or event gives the community an ending; Knockout City shipped its ninth season as the final one, and XDefiant shipped its planned third season. It runs as dated content like any other, with the earn rates and no paid track.

Open the data export, then schedule deletion. Players get a self-serve export window (Access and Portability) that stays up past the server shutdown, and the export includes what players made in the game, which the EU's Digital Content Directive already expects a trader to hand back in a machine-readable format when a contract is terminated. After the window, personal data is deleted on a published schedule, and what must be kept is kept under its own retention (Retention Schedules by Record Type).

Ship the end-of-life build, if there is one. The three forms (an offline mode in the live game, as The Crew 2 shipped; a private server edition, as Knockout City shipped on PC; a separate offline edition, as Capcom shipped for Mega Man X DiVE) all depend on decisions made years earlier:

  • The client starts without the backend. Login, entitlement checks, config fetch and telemetry each need an offline path, or the build can't start once the services are gone. The Crew 2's offline mode disables the shop, leaderboards, multiplayer and user-generated content and saves progression locally; a game designed with local saves and cached entitlements gets there with a flag, one designed without them needs a port.
  • The server binary is releasable. A dedicated server that players can run must not embed secrets, call proprietary services, or link middleware whose license forbids redistribution. Knockout City's console players got no private servers.
  • Licenses outlive the service, or are known not to. Ubisoft cited "licensing constraints" as one reason The Crew went offline. Licensed music, cars, brands and middleware have terms; whether they allow continued play after the service ends is a contract question to ask at signing, not at sunset.
  • Progress carries over, or the player is told it won't. Capcom said user data from the online Mega Man X DiVE couldn't be transferred to the offline edition, which also dropped Battle Mode, co-op, rankings, guilds and the collaboration characters; The Crew 2 lets a player generate an offline save from their online progression before going offline. A save format the client owns (Saves, Progression & Player Data) is what makes the second possible.

Turn off in order. The reverse of a launch: sales off, then matchmaking and logins (draining matches in progress, as in a maintenance window), then the game server fleets, then gameplay services, then the backend that players no longer reach. A small set stays up past the date: the status page, support, the refund and data-export flows, account deletion, and the store and payment reconciliation that keeps settling for months.

Keep the records. Purchases, the currency ledger, refunds, entitlements and support tickets outlive the game: tax and accounting need them, chargebacks arrive late, and a regulator or a court can ask what was sold and refunded. Archive them read-only with their retention dates, and keep the service accounts and keys that read them; delete everything else on the published schedule.

How to Build It#

Live ops runs on four kinds of record beside live_events: what config was published, which switches exist and what they do, which versions shipped together, and what each change did; a fifth, the end-of-service plan, comes once in a game's life. The general shape of versioned, effective-dated rules is in Rules as Data; tenant_id is on every table because the model is written for a platform serving many games.

CREATE TABLE config_versions (              -- one immutable published snapshot per game
  id            UUID PRIMARY KEY DEFAULT uuidv7(),
  tenant_id     UUID NOT NULL,
  game_id       UUID NOT NULL REFERENCES games (id),
  version       INTEGER NOT NULL,           -- reported by every service and client in telemetry
  schema_hash   TEXT NOT NULL,              -- the schema the values were validated against
  values        JSONB NOT NULL,
  reason        TEXT NOT NULL,
  published_by  TEXT NOT NULL,
  approved_by   TEXT,                       -- required when a risky key changed
  published_at  TIMESTAMPTZ NOT NULL DEFAULT NOW(),
  UNIQUE (tenant_id, game_id, version)
);

CREATE TABLE kill_switches (                -- the runbook's list, as data
  id            UUID PRIMARY KEY DEFAULT uuidv7(),
  tenant_id     UUID NOT NULL,
  game_id       UUID NOT NULL REFERENCES games (id),
  config_key    TEXT NOT NULL,              -- 'character.disabled.<id>', 'trade.enabled'
  what_it_does  TEXT NOT NULL,              -- read by whoever flips it at 3 AM
  in_flight     TEXT NOT NULL CHECK (in_flight IN ('finish', 'end_now')),  -- matches already using it
  owner         TEXT NOT NULL,
  last_tested_at TIMESTAMPTZ,
  UNIQUE (tenant_id, game_id, config_key)
);

CREATE TABLE release_sets (                 -- what shipped together, by layer
  id                UUID PRIMARY KEY DEFAULT uuidv7(),
  tenant_id         UUID NOT NULL,
  game_id           UUID NOT NULL REFERENCES games (id),
  name              TEXT NOT NULL,          -- '26.21', '26.21 hotfix 1'
  server_build_id   UUID NOT NULL REFERENCES builds (id),
  client_build_ids  UUID[] NOT NULL,        -- one per platform
  config_version_id UUID NOT NULL REFERENCES config_versions (id),
  content_version   TEXT NOT NULL,
  service_versions  JSONB NOT NULL,         -- {"store": "4.12.0", "matchmaker": "7.3.1"}
  path              TEXT NOT NULL CHECK (path IN ('full_patch', 'hotfix', 'server_data', 'config')),
  merged_into_id    UUID REFERENCES release_sets (id),  -- an out-of-band fix, folded into a train
  released_at       TIMESTAMPTZ,
  UNIQUE (tenant_id, game_id, name)
);

The decisions behind it:

  • Config is published, never edited. A change creates a new config_versions row; rollback publishes the previous values as a newer version, so "what was live at 14:02" is one query and every client's reported version means one thing.
  • Experiments and events overlay, not fork. The config a player gets is the published version, then the live events whose windows are open for their region and build, then their experiment variants, in that order, and the resolver records which layers applied. Two layers setting the same key is a validation error at publish time, not a surprise at runtime.
  • Every out-of-band fix names its train. A hotfix or server-data release set without merged_into_id once the next full patch is cut is a fix about to be undone; the release checklist queries for them.
  • Kill switches are tested. A switch whose last_tested_at is older than the last full patch is flipped in a test environment as part of the release, because a switch that doesn't work is discovered during the incident it was built for.

An end of service is dated content like an event, so its dates are one row that every service reads, not a calendar invite:

CREATE TABLE service_sunsets (              -- one end-of-service plan per game
  id                 UUID PRIMARY KEY DEFAULT uuidv7(),
  tenant_id          UUID NOT NULL,
  game_id            UUID NOT NULL REFERENCES games (id),
  announced_at       TIMESTAMPTZ NOT NULL,
  new_players_off_at TIMESTAMPTZ,           -- downloads and registrations stop
  paid_sales_off_at  TIMESTAMPTZ NOT NULL,  -- the unspent-currency cutoff
  servers_off_at     TIMESTAMPTZ NOT NULL,
  export_until       TIMESTAMPTZ NOT NULL,  -- self-serve data export stays up until
  end_state          TEXT NOT NULL CHECK (end_state IN ('offline_mode', 'private_servers',
                       'offline_edition', 'none')),
  refund_policy_url  TEXT NOT NULL,
  approved_by        TEXT NOT NULL,
  CHECK (announced_at <= paid_sales_off_at AND paid_sales_off_at <= servers_off_at
         AND servers_off_at <= export_until),
  UNIQUE (tenant_id, game_id)
);

The store, login, matchmaking and export services compute their state from these timestamps and the clock, as events do, so the stop-sale happens at its instant without anyone flipping it, and a test environment can play the whole sunset on an injected clock. A trigger refuses any update that moves a date earlier, which is the notice period's promise kept in the database.

Auditing#

  • Config and flags. Who published which version, the reason and approver, and which services and clients picked it up; a kill switch flip records the incident it served.
  • Events and seasons. Each version of an event, who approved it, and which version a player's reward claim was made under.
  • Releases. The release set behind every match, crash and ticket, through the builds they already name (The Games Business).
  • Compensation. Every make-good is a campaign with a definition, a dry run and grants keyed by campaign and account (Inventories, Entitlements & Economies).

The mechanics (typed actors, append-only history) are in Audit Trails.

What This Means for the System You Build#

  • Four change paths, built on purpose: full patches, hotfixes, server-side data overrides loaded at match start, and runtime config and flags, with tunable numbers designed into the fast paths.
  • A patch schedule as data that tools read, and a rule that out-of-band fixes are merged back into the next train.
  • Seasons, events and store rotations as effective-dated content, versioned, with per-region windows, an explicit start rule, a minimum client build, state derived from the clock and an injectable clock for testing.
  • Kill switches as data with a runbook line and a test date, failing safe for players mid-use, and remote config published as immutable, schema-checked, audited versions with client defaults.
  • Experiments as config overlays with one owner per key, variant ids on every event, no balance tests in ranked and review before any price test.
  • A release set naming the client, server, service, config and content versions shipped together, plus explicit compatibility rules between every pair of layers and a minimum client version.
  • Maintenance as a sequence (announce, drain ranked first, verify, reopen in stages, compensate), and a committed channel and clock for player updates.
  • Capacity for synchronized peaks, with a declared peak on every dated thing live ops publishes, staggered starts when it doesn't fit, admission control at login and match start, monitoring that doesn't share fate with what it watches, and compensation run as audited campaigns.
  • End of service as a dated plan: notice fixed at announcement and never shortened, paid sales stopped first, a published refund policy, delisting that keeps the update channel, an export window, an offline or private-server path designed in from the start, services turned off in order, and financial and support records kept after the servers go.

References#

Reference

In practice