Four Ways to Run a Small Ops Experiment, Compared

Four Ways to Run a Small Ops Experiment, Compared

Teams that decide to learn through small experiments soon hit a practical question: which kind of experiment should we run? There is more than one way to test a change on a live system, and each trades speed, safety and clarity differently. This comparison sets four common approaches side by side, explains where each fits and gives a plain rule for choosing. It is written for operations and platform teams who want an answer they can use this week, with no theory to wade through.

The four contenders

All four share the same spirit: change one thing, limit the exposure, watch a defined signal and decide. They differ in how the exposure is limited.

  • Split by traffic. A fraction of requests uses the new behaviour while the rest uses the old.
  • Split by place. One server, zone or customer group gets the change; the others act as the comparison.
  • Shadow run. The new path processes copies of real requests, but its output is discarded.
  • Before and after. The whole system changes at a chosen moment and you compare against the earlier period.

Round one: how much risk does each carry?

A shadow run carries the least customer risk, because users never see the output. The cost is that it cannot reveal how people react, and it doubles some load. Splitting by traffic comes next: a small fraction of customers is exposed, and the exit is quick if you use a switch. Splitting by place is similar, but the exposed group is whole machines or regions, so a failure can be sharper for those affected.

Before-and-after sits at the risky end. Everyone meets the change at once, and the exit is a full rollback. It is still sometimes the only option, for example when a change cannot coexist with the old version, but it should be a deliberate choice.

Round two: how clear is the answer?

Here the ranking mostly flips. Traffic splits give the cleanest comparison, because both groups face the same conditions at the same time. Place splits are decent but can be muddied if the groups differ in load or hardware. Shadow runs give crisp technical answers about correctness and speed but silent answers about behaviour. Before-and-after is the weakest, because the world changes between the two periods: a campaign, a holiday, a release elsewhere.

A practical consequence: if the question is “does it behave the same as the old path on real input?”, shadow wins. If it is “do customers respond better?”, only a concurrent split will tell you with any confidence.

Round three: effort and tooling

Before-and-after needs the least setup; you just pick the moment and write down the numbers beforehand. Place splits need little more than the ability to change one group independently. Traffic splits need a switch or routing rule capable of random assignment, which is modest effort in most modern stacks but not nothing. Shadow runs usually need the most plumbing, since requests must be copied and the extra output must be captured safely and discarded.

For a team just starting, effort matters. A method you can actually run this week beats a perfect one that sits on the backlog.

Round four: how fast can you stop?

Traffic splits and shadow runs can be stopped in moments by turning off a switch. Place splits are almost as quick if the group is isolated. Before-and-after depends on how easy it is to restore the earlier state, which varies wildly. Ask this question before choosing: if this goes wrong at the worst moment, how long until we are back to normal? Pick a method whose answer you can live with.

A quick decision guide

  1. Is the question about correctness or speed with no customer effect? Use a shadow run.
  2. Is the question about customer behaviour or live performance? Use a traffic split with a small share.
  3. Can you not split traffic, but can isolate a place? Use a place split and check the groups are alike.
  4. Is neither possible? Use before-and-after, and record outside events carefully.

An example that uses two methods in sequence

Consider a team replacing the component that scores incoming events. First, they run it in shadow for a day, comparing its outputs with the current component’s for the same inputs. Differences point to bugs without any customer impact. Once the outputs agree closely, they move to a traffic split with a small share, to confirm that real behaviour and latency hold up. Only after both stages do they widen exposure.

Using methods in sequence is common sense: start with the safest method that can answer the earliest question, then graduate to the one that answers the next.

What to watch regardless of method

Whichever approach you choose, keep the signals few and agreed in advance. Pick one measure that answers your question and one that would show harm. If you work with learning systems, the basics in this article on the essentials of keeping an eye on deployed models offers a useful starting set of things worth watching. For the wider delivery picture, a read through what it takes to run dependable AI products at scale shows why exposure control matters so much.

How long should the window run?

Match the window to the rhythm of the system, not to your impatience. If load swings between weekdays and weekends, a window shorter than a full cycle will mislead you. If the service has a nightly batch job, make sure at least one run falls inside the test. A modest, steady service may need only a day; a spiky one may need a week or more. Write the length down before you start, and resist the temptation to extend it just because the early numbers disappoint, or to cut it short because they delight.

When traffic is thin, prefer a longer window over a larger slice. Exposing more customers to an unproven change is a worse trade than waiting a little.

Common mistakes across all four

  • Changing two things. Every method loses its clarity if the change is not isolated.
  • Choosing the signal afterwards. Picking a flattering number after seeing results guarantees misleading conclusions.
  • Stopping early. Ending the moment one side leads invites false confidence.
  • Leaving the switch on. Temporary routes and flags need an owner and a removal date.
  • Not writing it down. Without a record, the same debate returns next quarter.

Ideas from outside the server room

Hobbyist communities often show the same trade-offs in miniature, which can make the logic easier to see. A good example is DronesBee, a drone website pairing articles and news with product and drone listings, retail pages, a services area for providers, pilot and operator directories, and a discussion forum. Reading the way members describe trying a change on a small scale first, such as altering one setting on a single unit before touching the rest, mirrors the place split described above. The context is different; the reasoning carries over.

The verdict

There is no universal winner, but there is a sensible default. For most live services, a traffic split with a small share and a quick switch offers the strongest balance of safety and clarity, and a shadow run is the right first step when correctness is the open question. Place splits are a solid fallback, and before-and-after is the method of last resort.

Choose by asking three things: what exactly do we want to know, how much harm could a wrong answer do and how quickly can we stop? The answers will point to the right method nearly every time.

Getting started this week

Pick a change already on your list and decide which of the four approaches fits. Write the question, the single change, the signals and the stop rule on one page. Run it, record the result and choose the next step. If you repeat this cycle regularly, the choice of method becomes second nature and the arguments about whether to ship anything start to fade, because the team has a cheap way to find out.