Load Testing · Senior · Question 48 of 76
A downstream stub always answers in 5 ms. What is wrong with that?
- 1Stubs should always be slower than the real dependency
- 2It is fine: stubs must answer as fast as possible
- 3Real dependencies have tails, so the stub hides waits and pool use
Show the answer
Correct answer: Real dependencies have tails, so the stub hides waits and pool use
Explanation
Slow dependencies hold threads and connections. Give stubs a realistic latency distribution, including occasional slow replies.