Application code in the thread-per-request style can run in a virtual thread for the entire duration of a request, but the virtual thread consumes an OS thread only while it performs calculations on the CPU. The result is the same scalability as the asynchronous style, except it is achieved transparently
And this is why Java is the greatest language ever.
We are getting asyncawait without the pain. Truly incredible.
Love how Java takes their time to add features. They are thinking decades in advance (which I like, others may not).
19
u/[deleted] Apr 07 '22
And this is why Java is the greatest language ever.
We are getting
asyncawaitwithout the pain. Truly incredible.Love how Java takes their time to add features. They are thinking decades in advance (which I like, others may not).