← All case studies

Case study 07 · Love Eden · United Tech · 2025

Remote config a designer can A/B test without a build

Every remote value used to arrive encoded, through a bespoke service per feature, identical for every player. Thirteen feature configs are now plain JSON that PlayFab Experiments can change per variant.

My role
Senior Unity Developer. Designed, built and maintained this system.
Constraint
A live title, no experiment infrastructure, and a backend that may be slow or down
Outcome
13 feature configs A/B-testable without a build, variant data in Amplitude automatically
Stack
C#PlayFab ExperimentsPlayFab Title DataAmplitudeUniTask

The problem

Every remote value came through the backend SDK in an encoded, compressed format that nobody could read or edit directly. Each feature had grown its own config service with its own retry logic, its own error handling and its own idea of what to do when the call failed.

And every player got the same values. There was no way to A/B test anything, which meant every tuning decision on ad cooldowns, reward amounts, first-purchase offers and gift sizes was an argument rather than a measurement.

What I built

One shared loader for all of it. Config keys are now plain JSON in PlayFab Title Data, editable in the dashboard by whoever owns the number. Thirteen feature configs run on it, covering rewarded and interstitial ads, maintenance mode, free transactions, the club feature, the first gem pack, the welcome gift, non-payer offers and utility popups.

The loader reads the Title Data value for a key, fetches that player's treatment variables from PlayFab Experiments, and merges them on top field by field. That merge is the part that matters. The general PlayFab guidance is that treatment variables require client code to read them explicitly; here a designer can name a variable after an existing config field and it takes effect with no code change at all.

Variant assignments are then pushed into Amplitude as user properties, one per experiment plus a combined one, along with an assignment event per session. Any existing event can be broken down by experiment without a single line of per-experiment engineering, and it shows readable variant names rather than ID hashes because the loader maps them first.

There is a floor under all of it. Every config ships with hard-coded client defaults, and anything that fails or takes longer than five seconds falls through to them, so a slow or broken backend never blocks the game. Guest players skip the whole path: no network call, no cost.

One loader reads plain JSON from Title Data, merges the player's treatment variables on top field by field, falls back to hard-coded defaults on timeout, and reports the variant to Amplitude. Feature asks for a keyone loader, thirteen configsTitle Dataplain JSON, editable in dashboardTreatment variablesthis player's variantMerge, field by fieldvariables win, no code changeConfig deliveredHard-coded defaultson 5s timeout, or a guestAmplitude: variant as a user property, per session any existing event breaks down by experiment, no per-test engineering

Before and after

BeforeAfter
Config formatEncoded, unreadablePlain JSON in the dashboard
ServicesOne bespoke service per featureOne shared loader
Per-player valuesSame for everyonePer-variant via Experiments
Failure behaviourNo standard timeout or fallback5s timeout, validation, defaults
Experiment reportingNoneAutomatic, in Amplitude

Decisions and trade-offs

Merge treatment variables automatically, field by field

instead of requiring each feature to read the variables it cares about

Reading them explicitly is the documented approach, and it makes every experiment a code change. That is the difference between an experimentation platform and an experimentation ticket queue. Merging generically means the people who design the test can run it.

Plain JSON in Title Data

instead of keeping the encoded, compressed payloads

Encoding bought a little bandwidth and cost all the legibility. Nobody could see what was live without running the game, which makes every config incident a debugging session instead of a glance at a dashboard.

Hard-coded client defaults behind a five-second timeout

instead of waiting for config, or shipping empty values

A config fetch sits in the launch path. If the backend is slow, the choice is between a player staring at a loading screen and a player playing with last-known-good numbers. The second one is always better, and it means a backend outage is not an outage.

Guests skip the config path entirely

instead of treating every player the same

Guests cannot be in an experiment and are the bulk of the traffic. Calling for them bought nothing and cost a request per launch.

Both config systems coexist, with new features on the new one

instead of a big-bang migration of every legacy feature

Migrating all of them at once on a live title is a large change with no user-visible benefit and a lot of ways to break a number somebody depends on. Each remaining feature is a small, documented job instead.

Result

Thirteen feature configs became testable without a build, and four more have been added since in the same pattern. The biggest consumer is the popup system: an experiment can suppress a popup for a variant, or only when it is triggered from a particular place in the game, and because the filter runs before the popup is constructed a suppressed popup costs nothing.

The email-consent prompt is the clearest example of why this mattered. It has to ask for marketing permission without becoming a nuisance, which means three numbers: how many times a player may ever see it before being permanently suppressed, how many days after a decline before asking again, and whether the feature runs at all. All three are remote configuration and all three are A/B testable, so tuning the prompt is a dashboard edit rather than a release.

The measurable part is that any analyst can open any event in Amplitude and break it down by experiment, with no engineering involvement. Experimentation stopped being a feature request.

What I would change

A treatment variable whose name matches no config field does nothing. It is not an error, nothing warns anyone, and the experiment runs to completion changing no behaviour at all. That is a whole wasted test and the kind of silence I should not have shipped. The fix is cheap, a validation pass that lists unmatched variable names, and it belongs in the loader rather than in a documented operating rule.

This describes architecture and the reasoning behind it. No employer source code is reproduced here.

Building something that has to stay up after launch?