Dark Launch

What is a Dark Launch?

A dark launch is releasing new code to production and running it on real traffic while users cannot see it, for example by sending it shadow requests or hiding its interface, so a team can test it under real load first.

Updated November 2026 · 3 min read


A dark launch is the practice of deploying a new feature or service to production and running it with real traffic or real users while keeping it hidden from most or all of them. The code is live, but the user-facing part is switched off, or its results are discarded, so the team can see how it behaves under real conditions before anyone depends on it.

The technique is commonly associated with Facebook, whose engineers described using a dark launch in 2008 to load-test the back end of Facebook Chat: users' browsers quietly exercised the new chat service before the chat interface was turned on. Dark launches are now common among teams that deploy frequently and want to separate deploying code from releasing features.

Types of dark launch

  • Shadow traffic. A copy of real production requests is sent to the new system as well as the old one. Users see only the old system's response, and the team compares the two.
  • Hidden feature. The feature is deployed but turned off by a feature flag for everyone except internal staff or a small invited group.
  • Background execution. New logic runs alongside the old, for example calculating new recommendations or prices, without showing the results to users.
TechniqueWho sees the changeMain purpose
Dark launchNo users, or only internal and invited usersTest performance and correctness under real conditions
Feature flagsWhoever the flag is turned on forControl exposure; the mechanism behind many dark launches
Canary deploymentA small percentage of real usersDetect problems with limited impact before full rollout
Blue-green deploymentAll users, switched at onceFast cutover and rollback between two environments
A/B testingA random sample of usersMeasure the effect of a change on user behavior

In practice these are often combined: a feature is dark launched to test the system, then canaried to a few users, then A/B tested to measure impact, then rolled out to everyone.

How to run a dark launch

  1. Decide what you are testing. Load, latency, error rates, data correctness or cost. Set pass criteria in advance.
  2. Build in the switch. Use a feature flag or routing rule so exposure can be changed without a new deployment.
  3. Protect users and data. Make sure shadow requests cannot send emails, charge cards or write to production data twice.
  4. Instrument everything. Add monitoring for the new path, and log differences between old and new results.
  5. Ramp gradually. Start with a small share of traffic and increase it while watching the metrics.
  6. Decide and release. When the criteria are met, expose the feature to users, often via a canary.
  7. Clean up. Remove the old path and the flag once the release is complete.

A dark launch in practice

Consider a hypothetical online marketplace replacing its search engine. The team deploys the new search service and mirrors 10% of live queries to it, then 50% and finally 100%, while users continue to see results from the old engine. At full load, the new service's 95th-percentile response time is 240 milliseconds, against a target of 200 and the old engine's 180. Comparing results also shows that 3% of queries return no results on the new service when the old one found matches, mostly because of missing synonym rules.

The team fixes the indexing problem behind the slow responses and adds the missing synonyms. A second round of shadow traffic shows a 95th-percentile time of 170 milliseconds and no-result differences below 0.5%. Only then does the new search go to a 5% canary of real users, followed by an A/B test to measure its effect on purchases.

Common pitfalls

  • Side effects from shadow traffic. Duplicate writes, emails or payments triggered by mirrored requests can do real damage.
  • Underestimating cost. Running two systems at full load can double infrastructure costs for the duration.
  • Leaving flags in place. Old dark-launch flags pile up as technical debt and make behavior hard to reason about.
  • Testing only performance. A system can be fast and still return wrong answers. Compare outputs, not just latency.

Dark launching is part of modern release management and depends on a mature CI/CD pipeline and good observability. For product teams, it is one way to make a feature release lower risk.

Frequently asked questions

What is the difference between a dark launch and a canary release?

In a dark launch no users, or only internal and invited ones, see the change; the goal is to test performance and correctness under real conditions. A canary deployment exposes the change to a small percentage of real users to catch problems with limited impact. Teams often dark launch first, then canary, then run an A/B test before full rollout.

What are the main types of dark launch?

There are three common types of dark launch. Shadow traffic sends a copy of real requests to the new system while users see only the old system's responses. A hidden feature is deployed but kept off by a feature flag except for staff or invited users. Background execution runs new logic alongside the old without showing its results.

What are the risks of a dark launch?

The biggest dark launch risk is side effects from shadow traffic, such as duplicate writes, emails or payments triggered by mirrored requests. Running two systems at full load can also double infrastructure costs for a time, and leftover flags become technical debt. Teams should compare outputs as well as speed, since a fast system can still return wrong answers.