How to limit virtual threads from overwhelming a service #javaapplications #virtualthreads #java

preview_player
Показать описание
Virtual Threads, added in JDK 21, allow for the potential for huge increases in throughput for Java applications. But how do we limit this throughput to services or parts of our code that might not be able to handle them yet? The answer is Semaphores!
Рекомендации по теме
Комментарии
Автор

I think of it this way: when using synchonized or a lock, I'm making it so that I can run at most 1 thing at a time. If I want that to be a bigger number then use a semaphore.

simonhartley
Автор

Consider changing the text "Sempahore" in the video. It sounds a little strange 😅

hochzeitseppmoni
Автор

Couldn't have been more difficult to understand the pronunciation.

georgetsiklauri
Автор

Your nose problem is annoying, but thank you for the tip 👍

siben