Quick revision
The short answer
I would make performance testing part of the golden path so teams get it almost for free: shared load-testing tooling and templates, small fast performance checks in CI for each service's critical endpoints compared against a baseline, and full-scale tests for critical services before major releases and peak seasons. Results go into one place with history so trends are visible, and test environments and test data have named owners so they stay usable.
What to remember
In this answer, we designed performance testing that 80 teams will actually use. Shared tooling and a template on the golden path make the first step cheap, small CI checks against a baseline catch most regressions on every merge, full-scale tests cover critical services before major releases and peaks, one results store with history makes slow trends visible, and named owners keep environments, data and tests healthy.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
I would make performance testing part of the golden path so teams get it almost for free: shared load-testing tooling and templates, small fast performance checks in CI for each service's critical endpoints compared against a baseline, and full-scale tests for critical services before major releases and peak seasons. Results go into one place with history so trends are visible, and test environments and test data have named owners so they stay usable.
Why this question is asked
With 80 services, a central performance team cannot test everything, and a policy that says 'every team must load test' produces either nothing or 80 different home-made scripts that nobody trusts. Interviewers ask this design question to see whether we can design a system of practices that teams adopt because it is the easiest path. In this answer, we will look at why performance testing usually fails at scale, then design the tooling, the two tiers of tests, the results store and the ownership model, and see how they fit together.
1Why Performance Testing Fails at Scale
The usual pattern is familiar. A few enthusiastic teams write load tests, each with a different tool, against a shared environment that is busy or broken half the time. Results live on someone's laptop or in a chat message. Nobody runs the tests again after the launch, so a regression six months later goes unnoticed until production.
The underlying problem is cost. A full load test takes days to set up and hours to run, so teams skip it. To get 80 teams to test, we have to make the common case cheap and automatic, and keep the expensive tests for the services and moments that really need them.
2Shared Tooling and Templates on the Golden Path
The golden path is the supported, documented way of building a service on the platform, usually with a project template. We add performance testing to it. The platform chooses one load tool, for example k6 or Gatling, provides a library of helpers for authentication, test data and reporting, and puts a starter test into every new service generated from the template.
The starter test already does the right things: it uses an arrival-rate model, warms up before measuring, reports percentiles and sends results to the central store. A team only has to name its critical endpoints and expected rates. For existing services, the platform team pairs with a few teams first and turns what they learn into the template.
3Two Tiers: Fast CI Checks and Full-Scale Tests
The design has two tiers with different purposes. The first tier runs in CI for every change to the main branch. It is small and fast, for example 3 minutes against a single instance of the service with its dependencies stubbed at realistic latency. It cannot tell us the service's capacity, but it can tell us that this change made create-order 25 percent slower than yesterday's baseline, which is how most regressions appear.
To keep it trustworthy, it compares against a rolling baseline from recent runs on the same hardware, not a fixed number, and allows a margin such as 10 to 15 percent. It starts as a warning and becomes blocking once its false-alarm rate is low.
The second tier is full-scale testing: production-like data volumes, real dependencies, ramp, soak and spike tests. It is expensive, so we run it for the services on critical journeys before major releases, architecture changes and peak seasons, perhaps 15 of the 80 services, scheduled in a shared calendar.
| Tier 1: CI check | Tier 2: full-scale test | |
|---|---|---|
| Who | every service | critical services (about 15) |
| When | every merge to main | before major releases and peaks |
| Duration | about 3 minutes | hours (ramp, soak, spike) |
| Environment | one instance, stubbed dependencies | production-like, real dependencies |
| Answers | did this change regress? | what is our capacity and bottleneck? |
4One Place for Results, With History
Every run, from either tier, uploads its results to one store with the service name, endpoint, version, commit and environment. A dashboard shows each endpoint's p99 and throughput over time. That history is what makes testing useful: a single run says little, but a line that has risen 5 percent every month for six months tells a clear story, and slow regressions like that slip past any per-change threshold.
Having one store also lets the platform team see coverage: which services have critical endpoints defined, which have not run a check in a month and which critical services have not had a full-scale test before the coming peak.
- Merge to main
- CI runs tier 1 checkshared runner, 3 minutes
- p99 within baseline + margin?YesPass, upload resultsNoWarn or block, upload results
- Central results storeservice, endpoint, version, commit
- Trend dashboardmonthly review of slow drifts
5 steps in order. Play them, or step through them one at a time.
5Owners for Environments and Test Data
Shared performance environments decay without owners: versions drift, someone's half-finished test leaves the database in a strange state, and the data volume no longer resembles production. So the design names owners. The platform team owns the full-scale environment, its booking calendar and its reset procedure. Each domain team owns the generated test data for its domain, kept as code so it can be rebuilt, and is responsible for keeping it realistic as production grows.
Ownership also covers the tests themselves. Each service team owns its critical endpoint definitions and fixes its own regressions; the platform team owns the runner, the store and the template, and helps when a team is stuck.
6Follow-up questions
How do you make CI performance checks stable enough to block merges?
Run them on dedicated, consistent runners rather than shared CI machines, warm up before measuring, use enough requests for stable percentiles, compare against a rolling baseline instead of a fixed number and allow a margin. Then measure the false-alarm rate in warning mode for a few weeks and only make the check blocking when teams trust it.
What if a team says it has no time to write performance tests?
That is why the template does most of the work. Defining two or three critical endpoints with rates and budgets takes an hour, and the runner does the rest. For critical services, a full-scale test before a peak is a release requirement agreed with leadership, with platform support offered, so it is planned work rather than an extra.
Which services get full-scale tests?
Those on critical user journeys, those that share a heavily loaded database, and any service making a major architectural change. The list is reviewed before each peak season based on traffic forecasts and recent incidents.
7Conclusion
In this answer, we designed performance testing that 80 teams will actually use. Shared tooling and a template on the golden path make the first step cheap, small CI checks against a baseline catch most regressions on every merge, full-scale tests cover critical services before major releases and peaks, one results store with history makes slow trends visible, and named owners keep environments, data and tests healthy.
Open with
I would make it the easy path rather than a rule. The platform picks one load tool and ships a shared runner plus a template in every new service, so a team only lists its critical endpoints with a rate and a p99 budget.
Then, if they want more
The runner already does warm-up, arrival-rate load and percentiles. Then two tiers. Tier one runs on every merge: a three-minute check against one instance with realistic stubs, comparing p99 to a rolling baseline with a margin of ten to fifteen percent.
It cannot measure capacity, but it catches most regressions, and it starts as a warning until its false alarms are low. Tier two is full-scale testing with production-like data and real dependencies, ramp, soak and spike, for the fifteen or so critical services before major releases and peaks.
Every run uploads to one results store with service, endpoint and commit, so we see trends over months, which catches slow drifts per-change thresholds miss, and we can see coverage.
Finally ownership: the platform team owns the runner, the store and the shared environment with a booking calendar and reset procedure, and domain teams own their test data as code and their own regressions.
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 organisation wants performance regressions caught before production across 80...": https://scrivio-interview-library.netlify.app/spring-boot/service-performance/a65e434dc9/