R2DBC vs JDBC + VirtualThreads #2772
Dimitris Zarras (dzarras)
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
JEP-444 (Virtual Threads) is GA since Java 21, and JEP-491 (Synchronize Virtual Threads without Pinning) is GA since Java 24.
In the meantime JDBC drivers have been working to resolve Pinning issues and adapt to Virtual Threads.
Currently, the following is proposed in the documentation:
I know that Virtual Threads are meant to help scale web applications that use the Thread-per-Request model, given that JDBC drivers have adapted to Virtual Threads though, does it make sense for someone to prefer
exposed-jdbcusing aDispatcherbased onExecutors.newVirtualThreadPerTaskExecutor(), overexposed-r2dbc?With the advent of Virtual Threads, is R2DBC still relevant?
Kind regards.
Beta Was this translation helpful? Give feedback.
All reactions