r/java • • Sep 20 '22

Java 19 / JDK 19: General Availability

https://mail.openjdk.org/pipermail/jdk-dev/2022-September/006933.html
252 Upvotes

64 comments sorted by

View all comments

47

u/TakAnnix Sep 20 '22

Really looking forward to playing with virtual threads!

5

u/AlabamaSky967 Sep 21 '22

Does anyone know what major benefits we will see with this and should it pair nicely with SpringBoot? Wondering if we are going to need a new framework besides Spring to take proper advantage of the virtual threads.

That's probably non-sense though, just a fear of mine having to do entire re-write of my app to take advantage :'D

2

u/cypressious Sep 21 '22

It will especially fair nicely with blocking by default frameworks like Spring Boot MVC (as opposed to Spring Webflux).

The concrete benefit is a reduced memory usage for high throughput workloads as blocking virtual threads releases the platform thread so you can serve a high number of requests using fewer threads