Platform

Developers

Resources

Pricing

Canary Testing

Canary testing is a software testing strategy where a new feature or update is introduced to a small portion of users before its full deployment.

The name draws inspiration from the "canary in a coal mine" concept – miners used canaries as early indicators of danger. Similarly, canary testing involves releasing changes to a limited user group to detect potential issues before impacting the entire user base.

How Canary Testing Works:

  1. Identify the Feature: Choose the new feature or update to test, ranging from minor design tweaks to significant functionality changes.

  2. Select a Subset: Pick a small, representative user subset as the "canary" group. Their experience will guide decisions about the new feature.

  3. Roll Out the Feature: Introduce the new feature to the canary group while other users continue with the existing version.

  4. Monitor and Gather Data: Monitor the canary group closely, gathering data on metrics like error rates, user engagement, and feedback.

  5. Analyze the Results: Examine data to assess if the feature functions as intended. If the canary group encounters no major problems, a broader rollout is likely safe.

  6. Full Rollout or Issue Resolution: If canary testing succeeds, extend the feature to all users. Address any issues identified before proceeding with the full release.

Canary Testing in Context:

Canary testing aligns with continuous delivery pipelines, releasing new software versions to limited users for performance comparison. Unlike A/B testing, which compares different versions, canary testing focuses on reducing risks by testing on a small scale.

Canary Testing and Feature Flags:

Feature flags are useful for canary testing. These toggles enable activating or deactivating features for specific user groups, aiding gradual rollouts and boosting confidence in a feature's success.

Challenges:

While canary testing offers risk management benefits, challenges include selecting representative user subsets and analyzing results, especially for large user bases. Canary testing doesn't eliminate all risk, but aims to mitigate it to an acceptable level.

Remember, canary testing is about prudent risk management rather than eliminating all uncertainty.

Join the #1 Community for Product Experimentation

Connect with like-minded product leaders, data scientists, and engineers to share the latest in product experimentation.

Try Statsig Today

Get started for free. Add your whole team!

What builders love about us

OpenAI OpenAI
Brex Brex
Notion Notion
SoundCloud SoundCloud
Ancestry Ancestry
At OpenAI, we want to iterate as fast as possible. Statsig enables us to grow, scale, and learn efficiently. Integrating experimentation with product analytics and feature flagging has been crucial for quickly understanding and addressing our users' top priorities.
OpenAI
Dave Cummings
Engineering Manager, ChatGPT
Brex's mission is to help businesses move fast. Statsig is now helping our engineers move fast. It has been a game changer to automate the manual lift typical to running experiments and has helped product teams ship the right features to their users quickly.
Brex
Karandeep Anand
CPO
At Notion, we're continuously learning what our users value and want every team to run experiments to learn more. It’s also critical to maintain speed as a habit. Statsig's experimentation platform enables both this speed and learning for us.
Notion
Mengying Li
Data Science Manager
We evaluated Optimizely, LaunchDarkly, Split, and Eppo, but ultimately selected Statsig due to its comprehensive end-to-end integration. We wanted a complete solution rather than a partial one, including everything from the stats engine to data ingestion.
SoundCloud
Don Browning
SVP, Data & Platform Engineering
We only had so many analysts. Statsig provided the necessary tools to remove the bottleneck. I know that we are able to impact our key business metrics in a positive way with Statsig. We are definitely heading in the right direction with Statsig.
Ancestry
Partha Sarathi
Director of Engineering
We use cookies to ensure you get the best experience on our website.
Privacy Policy