Quick revision
The short answer
In a closed model, a fixed number of virtual users each wait for a response before sending the next request, so the load depends on how fast the system answers. In an open model, requests arrive at a fixed rate whatever the response time, like real public traffic. A closed model hides latency problems because a slow system automatically receives fewer requests, and the requests that would have waited are never measured; this is called coordinated omission. Gatling, k6 and JMeter can all model arrival rates, and we should report percentiles rather than averages.
What to remember
In this answer, we saw that a closed model runs a fixed number of users who wait for each response, while an open model sends requests at a fixed rate like real public traffic. Because a closed model sends fewer requests when the system is slow, it under-reports latency through coordinated omission, and the same pause can show a p99 of 10 ms in a closed test and a second in an open one. Gatling, k6 and JMeter can all model arrival rates, the model should match the real traffic, and results must be reported as percentiles.
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.
In a closed model, a fixed number of virtual users each wait for a response before sending the next request, so the load depends on how fast the system answers. In an open model, requests arrive at a fixed rate whatever the response time, like real public traffic. A closed model hides latency problems because a slow system automatically receives fewer requests, and the requests that would have waited are never measured; this is called coordinated omission. Gatling, k6 and JMeter can all model arrival rates, and we should report percentiles rather than averages.
Why this question is asked
A load test that says 'p99 is 120 ms' can be telling the truth about the requests it sent and still be badly wrong about what users will see. The difference usually comes from the workload model. Interviewers ask this to see whether we understand what a load test actually measures. In this answer, we will define the two models, see with numbers how a closed model hides a pause, look at how common tools express each model, and see why percentiles matter.
1A Quick Recap: Two Ways to Generate Load
A load test sends requests to a system and measures the responses. The question is what decides when the next request is sent.
In a closed workload model, the tool runs a fixed number of virtual users, say 50. Each one sends a request, waits for the response, perhaps pauses for a think time, and then sends the next. The number of requests in the system can never exceed 50, and the rate of requests depends on how quickly responses come back.
In an open workload model, requests arrive at a rate we choose, say 500 per second, independently of how the system responds. If responses slow down, requests keep arriving and pile up, exactly as they would from thousands of independent users on the internet, who do not know or care that other users are waiting.
2How a Closed Model Hides a Slow Moment
Suppose the service normally answers in 10 ms and we run a closed test with 10 virtual users and no think time, which gives about 1,000 requests per second. Now the service has a 2-second pause, for example a long garbage collection pause.
During the pause, all 10 virtual users are waiting on their 10 requests. Those 10 requests each take about 2 seconds, and that is recorded. But in 2 seconds of real traffic at 1,000 per second, about 2,000 requests would have arrived and waited, many of them for most of the 2 seconds. The closed test never sent them, so it never measured them.
Notice that the same system, with the same pause, gives a p99 of 10 ms in one test and around a second in the other. The closed test was not lying about the requests it sent; it simply coordinated with the system, waiting politely whenever the system was slow, and so it omitted exactly the measurements that matter. This effect has a name, coordinated omission.
3Why Slow Systems Get Less Load in a Closed Test
There is a second, quieter effect. In a closed model, the throughput is roughly the number of users divided by the response time. If a new version makes responses twice as slow, the test automatically sends half as many requests. The system is under less pressure precisely when it has become worse, so it looks more stable than it is.
In an open model, a slower version still receives 500 requests per second. If it cannot keep up, the queue grows, latency rises sharply and errors appear. That is what production would do, so that is what we want to see in the test.
| Closed model | Open model | |
|---|---|---|
| What we set | number of virtual users | arrival rate (requests/s) |
| Next request sent | after the previous response | on schedule, regardless |
| System slows down | fewer requests arrive | requests queue up |
| Pauses and stalls | mostly hidden | fully measured |
| Matches | fixed pools of clients, batch workers | public web and API traffic |
4Expressing Each Model in Common Tools
Most modern tools support both, and the important thing is to choose deliberately. In Gatling, injection profiles such as constantUsersPerSec and rampUsersPerSec describe an open model, while constantConcurrentUsers describes a closed one. In k6, the constant-arrival-rate and ramping-arrival-rate executors are open, while constant-vus and ramping-vus are closed. In JMeter, the default thread group is closed, and an arrival-rate model needs a throughput timer or a plugin that schedules arrivals.
A k6 open-model test looks like this.
Notice the maxVUs setting. If the service slows down, the tool needs more concurrent workers to keep sending 500 requests per second. If it runs out, k6 reports dropped iterations, which is itself a useful signal that the system could not keep up.
5Choosing the Model and Reporting Percentiles
We choose the model that matches the real traffic. A public website or API, where users arrive independently, is an open system. A fixed pool of 20 worker threads pulling jobs, or an internal client with a bounded concurrency, behaves like a closed system. Many real systems are partly open: users arrive independently, but each session makes several requests in sequence.
Whatever the model, we report percentiles, such as p50, p95, p99 and the maximum, never only the average. An average of 15 ms can hide 3 percent of requests taking a second, which is exactly what a user with a slow page experiences. Tools like HdrHistogram, used by several load tools, record latencies accurately enough for high percentiles.
6Follow-up questions
Can a closed model ever be the right choice?
Yes, when the real clients are closed. A batch job with 16 worker threads, a message consumer with fixed concurrency or an internal service that calls us with a bounded pool all wait for a response before sending the next request. Testing them with an open model would create load that can never happen.
How can we correct for coordinated omission in a closed test?
Some tools can record each request's latency from the time it was intended to be sent, not from the time it was actually sent, which accounts for the wait. HdrHistogram has a mode that fills in expected missing samples given an expected interval. The simpler fix is to use an arrival-rate model when the real traffic is open.
Why does latency rise so sharply near capacity in an open model?
Because queues grow without limit once arrivals exceed the service rate, and even below that point, waiting time grows quickly as utilisation approaches 100 percent. At 50 percent utilisation a request rarely waits; at 90 percent it often waits several service times. Open tests show this curve; closed tests flatten it.
7Conclusion
In this answer, we saw that a closed model runs a fixed number of users who wait for each response, while an open model sends requests at a fixed rate like real public traffic. Because a closed model sends fewer requests when the system is slow, it under-reports latency through coordinated omission, and the same pause can show a p99 of 10 ms in a closed test and a second in an open one. Gatling, k6 and JMeter can all model arrival rates, the model should match the real traffic, and results must be reported as percentiles.
Open with
In a closed model the load tool has a fixed number of virtual users, and each one waits for its response before sending the next request, so the request rate depends on how fast the system answers.
Then, if they want more
In an open model, requests arrive at a fixed rate regardless of response time, which is how public traffic behaves, because users do not wait for each other. The problem with the closed model is coordinated omission.
If the service stalls for two seconds, the ten virtual users each record one slow request, but in production a thousand requests a second would have arrived and waited during those two seconds. The closed test never sends them, so its p99 can look like ten milliseconds when the real p99 is around a second.
It also sends less load when the system gets slower, so a regression looks more stable than it is. So for a public API I would use an arrival-rate model, for example k6's constant-arrival-rate executor or Gatling's users-per-second injection, and a closed model only when the real clients have fixed concurrency, like a worker pool.
And I would always report p50, p95, p99 and the maximum, never just the average.
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 "What is the difference between open and closed workload models in load testing, and why...": https://scrivio-interview-library.netlify.app/spring-boot/service-performance/4e5a3350ac/