The analogy I would use for thread-pool is to insert a waiter in front of the chefs in the kitchen.
It doesn't make sense for all workloads, but I have found thread pool to be useful in cases where application servers can overload database servers (either via misconfigured connection pooling, or no pooling).
An example where it might make less sense: a dedicated worker queue running in N threads connecting to MySQL.
morgo|11 years ago
It doesn't make sense for all workloads, but I have found thread pool to be useful in cases where application servers can overload database servers (either via misconfigured connection pooling, or no pooling).
An example where it might make less sense: a dedicated worker queue running in N threads connecting to MySQL.