Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Your company is deciding whether to fund a permanent production-scale performance environment or rely on testing in production with synthetic traffic and canaries. As the senior technical leader, how do you decide?

I would decide by comparing costs and risks rather than by preference. A permanent production-scale environment costs not only its infrastructure but also the constant work of keeping data and versions realistic, and that has to be weighed against the cost of performance incidents. Testing in production gives the most realistic results but needs strong isolation of synthetic traffic and safe rollback. Most companies land on a hybrid: scaled-down environments for regression testing, production canaries for every release and synthetic load in production before peaks, with regulated data constraints and measurable goals that we revisit.

Why this question is asked

This is a classic senior decision: a large, recurring cost on one side and a riskier but more realistic practice on the other, with strong opinions in both camps. Interviewers ask it to see whether we can frame the decision with numbers, recognise the hidden costs of each option and choose something that we can measure and change later. In this answer, we will look at the full cost of a production-scale environment, what testing in production needs to be safe, why a hybrid is common, how regulated data changes things and how to set goals that tell us whether the choice worked.

1Framing the Decision

Both options aim at the same outcome: finding performance problems before customers do, especially before peak seasons. So the comparison starts from what performance incidents cost us today. If last year had three peak-time incidents, each costing about two hours of degraded checkout, we can put a rough number on lost revenue, recovery work and reputation. That number is the budget the solution has to justify itself against.

Then we look at what each option really catches. A test environment catches regressions in our code and configuration. Only production, or something that truly mirrors it, catches problems in the real network, real data distribution, real third-party behaviour and real traffic mix.

2The Full Cost of a Production-Scale Environment

The visible cost is the infrastructure: a second copy of every service, database, cache and message broker at full size, which can approach the cost of production itself. If it runs all year, that cost is constant even though full-scale tests happen a few times a year.

The hidden cost is keeping it realistic. Production data volume grows every month, so the environment's data must be refreshed or regenerated. Every service must be deployed at the same version as production, configuration must match, and third-party dependencies need sandboxes that behave like the real ones at scale, which they often do not. Without a team spending real time on this, the environment drifts, and a drifted environment gives confident wrong answers, which is worse than no answer.

Comparing the options
Permanent full-scale envTesting in production
Realismdrifts unless maintainedreal by definition
Infrastructure costhigh, all yearlow, uses spare capacity
Ongoing workdata, versions, sandboxesisolation, tooling, rollback
Main riskfalse confidence from driftsynthetic load hurts real users
Regulated datacopies need masking or synthesisdata stays where it is

3What Testing in Production Needs to Be Safe

Testing in production means two practices. Canary releases send a small share of real traffic, for example 1 to 5 percent, to a new version and compare its latency and errors with the old one before rolling out. Synthetic load means generating extra traffic against production, for example to rehearse a peak at three in the morning.

Synthetic traffic must be isolated. Requests are marked, for example with a header and dedicated test accounts, so that they never charge real cards, send real emails, ship real parcels or appear in business reports. Downstream services must honour the mark all the way through, which means the platform has to support it, not each team ad hoc. And there must be a fast stop: load generation that halts automatically when error rates or latency for real users cross a threshold, and rollback for canaries that takes minutes.

Step throughA synthetic peak rehearsal in production
  1. Schedule at low real trafficannounce, on-call ready
  2. Ramp synthetic ordersmarked requests, test accounts
  3. Real-user p99 or errors past the limit?
    YesStop load immediatelyNoKeep ramping to target
  4. Hold at forecast peakrecord bottlenecks
  5. Clean up synthetic dataverify nothing leaked to reports

5 steps in order. Play them, or step through them one at a time.

4Why a Hybrid Is Common

In practice, few companies choose one side. A common hybrid uses scaled-down environments, for example a tenth of production size with representative generated data, for regular regression testing, where the question is whether a change made things slower relative to last week. It uses production canaries for every release, which catch the regressions that only real traffic shows. And it uses synthetic load in production before each peak, to test the real infrastructure at forecast volume.

The hybrid usually costs much less than a permanent full-scale copy and catches more, because each practice is used for the question it answers best. If a temporary full-scale environment is needed, for example for a major migration, it can be built from infrastructure code for a few weeks and then removed.

5Regulated Data Constraints

Copying production data into a test environment is often restricted by regulation and policy, such as rules for payment card data, health records or personal data under privacy laws. Masking data so that it keeps its realistic distribution while removing identities is hard, and a masked copy can still be sensitive. So a full-scale environment usually needs synthetic data generators that reproduce volumes and distributions, which is real engineering work to include in its cost.

Testing in production avoids copying data, but the synthetic traffic must still not touch real customers' records, and its own data must be removed afterwards. Both approaches need the compliance team involved early.

6Decide With Measurable Goals and Revisit

We make the decision with goals that tell us later whether it worked: for example, zero peak-season incidents caused by capacity, regressions caught before full rollout in 90 percent of cases, and a cost ceiling for testing infrastructure. We review after the next peak. If the hybrid still lets serious problems through that only a full environment would have caught, we have evidence to fund one; if not, we have saved the money with confidence.

7Follow-up questions

Is testing in production reckless?

Not when it is done with isolation and fast stops; it is how many large services rehearse peaks. It becomes reckless when synthetic requests are not clearly marked, when side effects such as payments and emails are not suppressed, or when there is no automatic stop based on real-user health.

What would make you choose a permanent full-scale environment?

A system where production testing is too dangerous or not allowed, such as some financial or medical systems, combined with a high cost of incidents and a team willing to own the environment's realism. Even then, I would make it reproducible from infrastructure code so it can be scaled down between tests.

How do you keep a scaled-down environment useful?

Use it for relative comparisons, such as this version against last week's on the same environment, rather than absolute capacity numbers. Keep its data generator under version control and refresh it on a schedule, and keep deployments automated so versions match production.

8Conclusion

In this answer, we framed the choice between a permanent production-scale performance environment and testing in production by comparing full costs and risks. A full-scale environment costs infrastructure and the constant work of keeping data and versions realistic; testing in production is realistic but needs isolation of synthetic traffic and fast rollback. Most organisations choose a hybrid of scaled-down regression environments, canaries and synthetic peak rehearsals, consider regulated data from the start, and set measurable goals to revisit the decision.

What to say in the interviewAbout 80 seconds aloud

Open with

I would frame it as a cost and risk comparison against the cost of the incidents we are trying to prevent. A permanent production-scale environment costs a second copy of everything all year, and, more importantly, the ongoing work of keeping data volumes, versions, configuration and third-party sandboxes realistic.

Then, if they want more

Without that work it drifts, and a drifted environment gives false confidence. Testing in production is realistic by definition, but it needs platform support: synthetic requests marked end to end with test accounts so they never charge cards or send emails, automatic stops based on real-user latency and errors, and rollback in minutes.

I would usually recommend a hybrid: scaled-down environments for regression testing, where we compare versions relative to each other, canaries for every release, and synthetic load in production at quiet hours before each peak. If we need full scale for a migration, we build it temporarily from infrastructure code.

I would bring compliance in early, because copying regulated data into test usually means building synthetic data generators. And I would set goals, such as no capacity incidents at peak and most regressions caught before full rollout, then revisit after the next peak with evidence.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Your company is deciding whether to fund a permanent production-scale performance...": https://scrivio-interview-library.netlify.app/spring-boot/service-performance/b0a3c7b74f/