Testing in production
Testing in production is the practice of evaluating software or infrastructure behavior in a live production environment.
Grokking Software Architecture
Validating software on production infrastructure, potentially using controlled exposure to real user traffic.
- How it is used
- Uses production as the final validation loop when controlled exposure can test software against real traffic and system conditions.
- How deep it goes
- Compares staging with production and gives a decision rule based on compliance, observability, and failure isolation.
- Examples
- Contrasts drifting staging environments with controlled live exposure through dark launching, inversion feature flags, and canary proxies.
- What you can do after
- Evaluate whether compliance, observability, and traffic controls justify production validation or require a physical staging gate.
Read how Grokking Software Architecture explains testing in production →
Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform
Testing in production is the practice of validating software or infrastructure behavior in the live production environment under controlled conditions.
- How it is used
- Uses controlled production validation to optimize cloud costs without maintaining a separate testing environment.
- How deep it goes
- Explains definitions, blue-green execution, feature flags, canaries, and roll-forward recovery, but not detailed implementation code.
- Examples
- Uses a conference video service, parallel resource sets, production traffic switching, and delayed deletion of old infrastructure.
- What you can do after
- Apply via blue-green deployments and feature flags to validate infrastructure changes against production systems.
Also covered in
What to know first
- canary deploymentA canary deployment is a release strategy that exposes a change to a limited portion of users, traffic, or infrastructure before expanding it more broadly.
- distributed systemA distributed system is a computing system whose components run across multiple networked processes or machines and coordinate through communication.
Related concepts
- canary deploymentuses · A canary deployment is a release strategy that exposes a change to a limited portion of users, traffic, or infrastructure before expanding it more broadly.
- dark launchuses · A continuous delivery deployment technique in which software is shipped to production while concealed from and inaccessible to general users.
- software testingkind of · Software testing is the systematic evaluation of software under specified inputs or conditions to assess its behavior against expected results or requirements and identify defects.
- blue-green deploymentuses · Blue-green deployment is a release pattern that maintains separate active and replacement environments and switches traffic between them after the replacement is validated.
- staging environmentalternative to · A staging environment is a pre-production computing environment used to validate software or operational changes under conditions that approximate production.
- feature flaguses · A feature flag is a configuration control that conditionally enables, disables, or selects software functionality at build time or runtime.
Questions about testing in production
What is testing in production?
Testing in production is the practice of evaluating software or infrastructure behavior in a live production environment.
Which Manning books explain testing in production?
Grokking Software Architecture and Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform.
What should I know before learning testing in production?
Manning books that teach testing in production usually introduce canary deployment and distributed system first.
What is the difference between testing in production and staging environment?
Testing in production is the practice of evaluating software or infrastructure behavior in a live production environment. A staging environment is a pre-production computing environment used to validate software or operational changes under conditions that approximate production.
What is testing in production a kind of?
Testing in production is a kind of software testing. Software testing is the systematic evaluation of software under specified inputs or conditions to assess its behavior against expected results or requirements and identify defects.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

