How do you design a realistic load-test workload?
Answer
Derive the model from production or business evidence: important user journeys, their traffic mix, arrival or transaction rates, concurrency, session length, think time or pacing, data distribution, peak shape and test duration. Represent ramp-up, steady state and ramp-down intentionally, and decide whether a user-count model or an arrival-rate model matches the real traffic. Validate the generated throughput during the run; configured virtual users alone do not prove that the intended workload was produced.
Strong answer includes
- starts from operational traffic and business journeys
- models traffic mix, timing, data and load shape
- validates achieved request or transaction rate rather than trusting configured VUs
Practical example
If production shows 60% browse, 25% search and 15% checkout at a known peak arrival rate, preserve that mix and timing in the test rather than making every VU loop through every action as fast as possible.