Skip to content

A simple app demonstrating how we can use virtual threads in Spring Boot application for enhanced concurrency and performance

Notifications You must be signed in to change notification settings

BootcampToProd/spring-boot-virtual-threads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Virtual Threads Explained: Easy Configuration & Examples

For complete understanding of Spring Boot Virtual Threads and how we can enable it inside the Spring Boot application you can checkout our blog.

Blog Link: Spring Boot Virtual Threads Explained: Easy Configuration & Examples

spring-boot-virtual-threads

A simple app demonstrating how we can use virtual threads in Spring Boot application for enhanced concurrency and performance

App Overview

This is a simple app containing three endpoints: /hello for basic greetings, /hello-with-delay to simulate response delays, and /hello-async for asynchronous processing.

JMeter Test Plan

To test the performance of Spring Boot application with and without virtual threads:
1. Enable or disable virtual threads in the application properties.
2 Run the JMeter test plan and analyze the output in the response time graph to compare the performance under different configurations.

The JMeter Test Plan is available under the resources folder.
[src > main > resources > jmeter > Spring-Boot-Virtual-Threads.jmx]

Postman Collection

Additionally, the Postman collection is available under the resources folder containing all the requests.
[src > main > resources > postman > Spring-Boot-Virtual-Threads.postman_collection.json]