Load Testing · Senior · Question 16 of 76

A service gets more DB connections in its pool, and latency gets worse. Why?

Show the answer

Correct answer: The DB is saturated, so more connections add contention and switching

Explanation

A DB has limited cores and disks. Past a point, extra concurrent queries just wait on locks and CPU. A smaller pool with a queue in the app is often faster.

Further reading

Problem with a question

Load Testing · Senior · question 16

Test yourself

Take the Load Testing · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz