Professional IT services from accompio for companies in Germany.
Success Story

Performance Engineering: „The tests saved us from a disgrace“

How modern performance tests revealed critical errors in a customer’s system shortly before go-live – and what you can learn from this for your own projects.

Performance Engineering | Practical report

Why performance engineering?

The release date is set, the functional tests are green, the team is convinced: „It works.“ But what happens when hundreds of users simultaneously collect data on a normal working day? When everyone comes at once after an advertising campaign? Or when the system is under load for five hours straight? Exactly these questions we answered six weeks before the go-live of a new software for a client. The result surprised everyone.

Information about data protection: For data protection reasons, all customer data has been anonymized. The customer name, product designations, system names, and server information are presented in generalized form. The measured values mentioned are derived from the actual project.

virtually unlimited users

Test types

analyzed measurement values

Week-long test period

Initial position

Everything was missing – except the appointment

Anyone familiar with performance tests from the textbook assumes a ready-made testing environment, existing monitoring, and clear service level agreements. The reality was different, but we were able to solve it.

In addition, there were complicating factors: permissions were only granted after a lengthy process, many approvals were required, and time was tight. The architecture was anything but trivial – microfrontends, microservices, an external identity provider for logging in and event streaming in the background.

Nevertheless, the end result was clear: reliable results and critical findings – before the release, not after.

How we solved it: Test environment built by accompio

How we solved it: Dedicated Grafana dashboard for the application and database

How we solved it: Introduction of Apache JMeter and k6

How we solved it: Generation of synthetic test data

How we solved it: Evidence-based evaluation without predefined thresholds

Methodology

The modern approach: asking questions instead of „just putting the burden on you“

Classic load tests often end with a single number: „The system can handle 300 users.“ Modern performance engineering works differently. It starts with the questions that the business really asks and chooses the appropriate testing method for each question. Five principles have shaped this project:

Question-driven test design

Each scenario answers exactly one question – for example, „Will the system remain stable for hours?“ or „Will the platform grow in time?“.

Realistic user journeys

Virtual users click through the entire route – just like a real employee: Home page, login, transaction XY, transaction XZ, conclusion.

Observability from the very beginning

Without monitoring, there can be no cause analysis. Historical data and system metrics are stacked one on top of the other; this way, symptoms become causes.

Evidence instead of gut feeling

Approximately 1.5 million measurement values were evaluated; each statement is marked with its degree of evidence. Errors that were discovered were confirmed through confirmation rounds.

Results that everyone understands

Instead of percentile charts, analogies were used in the form of „images“ such as a highway or a parking garage. This allowed the department responsible, development and management to make decisions together.

Test design

Eight test types – each with its own mission

A single load test would never have found the critical errors. Only the combination of five backend scenarios and three complementary scenarios provided the complete picture:

  • Reproducibility test – the basis: Only when the same test yields the same result twice are measurements comparable.
  • Final test – like a normal, busy day at work.
  • Spike test – like the surge after an advertising campaign: The load suddenly jumps from 10 to 100, 150 and 300 users.
  • Stress test – increase the load to the limit of tolerance and check whether the system recovers.
  • Long-term testing – a marathon instead of a sprint: 200 users over five hours.
  • Frontend testing – a real browser measures, in parallel with the backend load, how fast the application feels to the user. Backend tests do not look at loading, rendering, and JavaScript, however.
  • Auto scaling test – does the platform start new instances automatically when the load increases, and does it do so in a timely manner?
  • Resilience test – under constant load, a component suddenly shuts down. What matters is how quickly the system recovers.

Figure 1: Overview of the eight test types (hover for zoom or click for full screen)

Results

The results: Six discoveries that no one expected

1. The motorway: Traffic jams begin at 250 users

By 200 simultaneous users, the system scaled up admirably: twice as many users, twice as many completed requests. After 250 users, the picture changed. The throughput hardly improved any further; the wait time (P95) rose from 2.1 to 15 and finally to 42 seconds. The reason: The compute power of the on-demand service was reaching its limits.

Figure 2: Throughput and waiting time in the stress test

2. The parking garage effect: The most critical finding came only after 151 minutes

During the long-term test, everything initially ran normally. However, the search for offers gradually became slower, from 0.35 to 1.0 seconds. After about 2.5 hours, the total failure occurred: database access broke down, the error rate was around 75 percent, and the system could no longer recover until the end of the test.

Figure 3: Slowing down and failure during the long-term test

The parking garage image

Database connections are like parking spaces in a parking garage. If they are occupied but not released again, eventually there is no more space available – and no one can get in anymore. In the confirmation loop, the same error occurred after only 50 minutes. A brief test would never have shown it.

3. Quick successes: Login limit and token expiration

Two sources of error could be corrected during the testing phase and confirmed through repeated runs:

  • Login limit: In the spike test, the identity provider rejected requests for many simultaneous logins (HTTP 429). After adjusting the limit, there were no login errors in the repeated spike test.
  • Token process: At minute 60, users received the error „not logged in“ (HTTP 401). The token lifetime was increased from around 60 minutes to eight hours – the error no longer occurred in the confirmation loops.

Without these findings, many employees might not have been able to log in at all on the release day, or would have logged out after an hour.

4. What the user actually experiences in the browser

In parallel with 200 virtual users, a real browser opened the interfaces and measured when the page is visible and operable:

Surface Low load (20 users) Under load (200 users)
Home page 0.85 s 1.5 s
Transaction XY 1.89 s 3.96 s
Transaction XZ 0.67 s 1.23 s

Two vulnerabilities were discovered: During the approximately two-second transaction, the user did not see any charging status, clicked again, and triggered duplicate requests. Additionally, the interface called multiple interfaces in succession instead of in parallel, resulting in the added wait times. The development has fixed the second problem during the testing phase.

5. Autoscaling: The fire department only arrives after eight minutes

Auto-scaling is one of the great promises of modern platforms: As the load increases, the platform automatically scales up. We wanted to know whether this promise holds up under real-world load. To test this, we gradually increased the load from 50 to 400 users and observed whether the most computationally intensive service would automatically start additional instances.

Figure 4: From the load increase to the new instance starting to work takes about eight minutes

The autoscaling was active – but it acted like a fire department that only starts working when it has been burning for two minutes, then thinks for another minute and then needs five minutes to get to the scene. It takes about eight minutes for a new instance to actually take over the load.

Figure 5: The load levels come faster than the platform can react

During the stress test, the load increased by 50 users every ten minutes. Before the scaling could take effect, the next level had already been reached – a third instance was never launched. The entire load continued to run on two instances, which reached their CPU limits at 250 users. The result is shown in the congestion zone in Figure 2: The wait time increased from 2 to 15 seconds.

What this means in real operation

Real peak workloads often only last a few minutes – for example, when many employees start working at the same time. An autoscaler with an eight-minute response time only helps when the peak has already passed. He scales up for the past, not for the present.

The adjusting screws: Set thresholds earlier, shorten the observation window, optimize the start time of new instances, and prepare enough instances in advance for known peak times. Only a further Autoscaling test will show whether this works.

6. Resilience: A failure – and then a high-rope activity without a net

Disruptions happen: containers fall off, servers are restarted, deployments go wrong. The question is not whether it happens, but how the system reacts. Therefore, in the resilience test we deliberately created chaos, following the principle of chaos engineering: under constant load of 140 users, an instance of the service was stopped hard in minute 30.

1:40 min

until the second instance takes over

Ø 5 %

Error rate during the outage

134

lost data

0

Automatic restarts
Figure 6: Error rate and active instances around the outage

The good news: The second instance took over. The bad news: By then, 1 minute and 40 seconds had passed, during which 134 requests were lost – more than one request per second. Behind each of them is an employee who was just collecting data, perhaps with the customer at the table.

The actual findings came afterwards.

The suspended instance did not restart on its own. From that moment on, the platform continued to run on a single instance – and no one would have noticed. A second outage would have stopped the entire request pipeline. A high-wire act without a net.

The solution is relatively simple: health and liveness checks that detect a failed instance and automatically restart it. The feedback went directly to the development team – long before a real failure could have forced it.

Review

The overall picture

At normal load, the system is stable and reproducible and can be measured. However, with continuous and high load, database access is interrupted. The cause has been identified and the solution is planned. Above all, there is now a reliable planning basis: around 200 users in continuous operation, around 250 temporarily – without additional scaling.

Figure 7: Results of all test types at a glance
„I didn’t expect load tests to reveal such important points. We were convinced that our internal tests were sufficient for product release. The performance tests saved us from a fiasco.“
Customer's Product Owner

Practical tips

6 tips for your next load test project

Test it for a long time.

The most dangerous errors are time-dependent. A long-term test over several hours is part of every project.

Monitoring first.

Without metrics for application and database usage, you only see symptoms, not the causes.

Test it in production.

A database that is too small in the test environment distorts results. Separate the application and environment boundaries.

Think about logins and tokens.

Identity Providers, Rate Limits, and Token Lifetime are common, underestimated sources of error.

Try the serious situation.

When under load, specifically switch off components and measure autoscaling response times. The cloud does not scale on its own as you would expect.

Confirm any corrections.

A fix is only a fix when a repeat run confirms it.

Use

Why performance tests are worthwhile

  • Finding what no one else finds: Finding what no one else finds: The exhaustion of the connection pool was only revealed after 50 to 150 minutes of sustained load. No functional test would have detected it.
  • Testing instead of at the customer's place: A failure in a test costs a test run. In production, it costs revenue and trust.
  • Numbers instead of gut feeling: Capacity limits are now measured, not estimated.
  • Quick successes: Several error sources were still fixed and confirmed during the testing phase.
The project has yielded results: After implementing the optimizations, the tests will be repeated and expanded. The department is also considering continuously conducting performance tests in the future – also for additional applications.

Training

Learn this approach yourself

The approach described here is not a secret, but rather a teachable methodology. In our hands-on training sessions, experienced consultants—who have carried out such projects themselves—provide the exact skills that made the difference in this project:

Ready for your own performance offensive?

Discover our complete training portfolio – from performance engineering to test automation to DevOps.

About the author

Tamer Ilgüz

Principal IT Consultant | accompio

Tamer Ilgüz has more than ten years of experience in performance engineering. He plans, builds, and operates load and performance tests for complex distributed system landscapes – from microservice architectures to cloud platforms and business-critical application pipelines – and has been responsible for projects for renowned customers from various industries.

As a trainer at accompio, he shares this knowledge: methodology, theory, and tools of performance engineering – practically, with real examples from projects like this one.