I remember this advice. I think the old recommendation meant to emphasize that in most cases the application should not try to perform additional flow control for the container (the keyword here is โcontainerโ). Also messing up threads can lead to overuse of your server resources. In the days of single / double cores, this was very important.
In any case, today we have:
- more cores
- more applications using the asynchronous model
The DataStax driver allows you to configure the maximum thread pool size so you can keep it under control.
In conclusion, I believe that using the driver is enough. You can configure the thread pool according to the needs of your application and the resources of the server (s).
source share