Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bootcamptoprod/spring-boot-virtual-threads

A simple app demonstrating how we can use virtual threads in Spring Boot application for enhanced concurrency and performance
https://github.com/bootcamptoprod/spring-boot-virtual-threads

java-virtual-threads spring-boot-3 spring-boot-virtual-threads spring-virtual-threads virtual-thread virtual-threads virtual-threads-java-21

Last synced: 4 days ago
JSON representation

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

Awesome Lists containing this project

README

        

## 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](https://bootcamptoprod.com/spring-boot-virtual-threads/)

# 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]