Loading tutorials
ExecutorService, and that you have a Spring Boot 3.2+ MVC application on Tomcat or Jetty. It also assumes you know what blocking I/O is (JDBC, HTTP clients) and can edit application.properties. The previous chapter showed that Spring MVC gi5 min readThread, ExecutorService, and java.util.concurrent. It also assumes you know what b5 min readExecutorService, and the idea that a virtual thread is a lightweight Thread managed by the JVM. It explains what actually executes a virtual thread, and why that matters when you tune or debug a Spring Boot application.6 min readapplication.properties or application.yml. By the end you will h5 min readExecutorService and have a working idea of what a virtual thread is. The property spring.threads.virtual.enabled=true looks like one switch, but it changes several separate component5 min readExecutorService example, and you have a Spring Boot 3.2+ MVC application on Java 21. It also assumes you know the property that enables virtual threads. This chapter covers the decision: which applications gain from t6 min readspring.threads.virtual.enabled=true, and that you are comfortable with synchronized, ReentrantLock, and java.util.concurrent. The behavior described here applies to 6 min readspring.threads.virtual.enabled=true, and that you are comfortable with ThreadLocal basics. It covers how ThreadLocal behaves on virtual threads, where it still works, where it causes trouble, and what to do about it.6 min readExecutorService and Future, you can read a Spring MVC controller and service, and you have read the earlier chapters on enabling virtual threads and limiting concurrency. The examples use Java 21.5 min readspring.threads.virtual.enabled=true in a Spring Boot 3.2+ MVC application on Java 21. It also assumes you know what pinning is and can run jcmd against a local JVM. The goal is to confirm that virtual threads are doing the work and to find out when they are 6 min readjava.util.concurrent, and how a Spring MVC application handles a request on a blocking thread. It also assumes you have read the earlier chapters on enabling virtual threads and on which workloads suit them. Here you compare virtual threads with reacti5 min readThreadLocal state, concurrency limits, and observability. Here you will put those pieces 6 min read