Spring into the Future: Embracing Virtual Threads with Java's Project Loom

preview_player
Показать описание
In this tutorial you will learn what Virtual Threads are in Java and how you can take advantage of them in your Spring Boot applications.

00:00 Introduction
00:08 Spring Developer Benefits
00:16 Virtual Threads Demo
00:26 JDK 21 & Spring Framework 6.1
00:38 Learning Virtual Threads
00:56 Thread Per Request Model
02:14 Scalability Solutions
03:35 Maximum Concurrent Threads
04:29 Asynchronous Programming
05:36 Introducing Virtual Threads
07:07 Spring Application Demo
10:22 Executor Modification
11:04 Virtual Thread Advantages

🔗Resources & Links mentioned in this video:

👋🏻Connect with me:

Рекомендации по теме
Комментарии
Автор

Thanks for the tutorial. This is good stuff from DV. Will like to use it in a multi module /microservices application

maneshipocrates
Автор

Pretty nice, i know that it won't replace the webflux (reactive) and all (non-blocking and back-pressure ) but it is very nice improvement for Java itself.

bayonnesensei
Автор

Thanks Dan, I will be stealing these slides to learn my students about VT (most don't even know about threads, so it's a challenge)

markrensen
Автор

How cool! Almost feels too easy! Love the content as always. Your style and delivery make concepts like this super easy to digest.

_leftii
Автор

As always, nice content!!!. I wonder what we can do with those cheaps threads, maybe more connections to a database ? the concept of connection pool would change later?

Автор

Thanks for the explanation, I'd like to know what software or tool you did use to create the illustrations about threads. Thanks again.

marouaniAymen
Автор

Could you tell me please what’s ide you are using and which theme? It looks great

hzhjroi
Автор

good video very informative, can you please make a video about Spring boot event sourcing / CQRS

michelchaghoury
Автор

Can i use Virtual Thread in every case? Is there any case where i cannot (should not) use Virtual Threads?

sadiulhakim
Автор

Is there any value to use virtual threads with webflux applications assuming there is a way to configure netty just like the way you configured tomcat?

sharifyy
Автор

where did you get this cool thsirt? =D

wes
Автор

The idea of Java Virtual Threads was borrowed from Erlang Processes for BEAM virtual machine ))

owlboom
Автор

Thanks that's great I'm very excited to use virtual thread but can we use virtual thread in production or we should wait until spring include this future

mustafazuhair
Автор

Btw do you know if there's any database library that is loom ready ?

Lasmbr
Автор

Is it fair to say that if tasks being executed within the context of thread is primarily CPU intensive (or doesn't involve any blocking operations), then such task executions will NOT be benefited from virtual threads as eventually you will need an OS thread to execute the thread's core logic ?

mandarkulkarni
Автор

Funny, Scala cats has such thing from many years back. Yet it is a preview in java.

scalacode
Автор

Forget Spring... plain vanilla Microprofile is more powerful. If you change to Helidon or Quarkus you'll have the cloud native experience, out of the box, that Spring doesn't give you, even jumping through hoops.

luisdanielmesa