|
|
|
|
|
by lmm
885 days ago
|
|
Java's virtual threads are supposed to be a drop-in replacement for real threads. But using virtual threads means you get a far smaller number of real threads, and things that were safe back when you had an unlimited number of real threads available (or at least, a larger number than your database connection pool) are no longer safe. |
|
If they're, like, limiting to CPU cores * 2 threads: yeah that would be Badâ„¢. Unambiguously. I haven't been able to find anything conclusive about this though.