Can datastex Java drivers be safely used in EE containers?
com. datastax. driver. core. The documentation for the session class illustrates this
However, the general recommendation for EE environments is to leave pool and thread management to the container
In my opinion, the datastex driver (mainly not for EE environment) violates this rule This makes me worry about whether the driver can be used safely in my EE application
Solution
I remember that suggestion I think this is an old suggestion to emphasize that in most cases, applications should not try to do additional thread management for containers (the keyword here is "container") Messing up threads can lead to excessive use of server resources In the era of single / dual core, this is very important
Anyway, today we have:
>More cores > more applications using asynchronous models
The datastax driver allows you to use configure the max thread pool sizes, so you can put content under your control
Finally, I think using drivers should be very safe You can adjust the thread pool according to the application requirements and server resources