4 ms·
It depends a lot on how the service handles requests. If it takes the one thread per request model, and those requests are mostly bound by blocking calls like I
by aardvark179 6y ago
It depends a lot on how the service handles requests. If it takes the one thread per request model, and those requests are mostly bound by blocking calls like IO, then replacing those OS level threads with virtual threads will almost certainly see a reduction in resources (as virtual threads are smaller) and potentially more consistent response times (because scheduling the correct thread is easier at the JVM level).
However if your service has been written in an async style, or you are mostly CPU bound, then you aren't likely to see a change.
Our hope is that by making simple blocking code perform better you won't have to spend your time converting code to an async style to scale your services.