Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jabrena/101-spring-boot-with-loom
A review about how to use Spring Boot with Virtual Threads, Structural Concurrency & Scope Values (JEP 444, JEP 437 & JEP 446)
https://github.com/jabrena/101-spring-boot-with-loom
loom spring-boot structural-concurrency virtual-threads
Last synced: 17 days ago
JSON representation
A review about how to use Spring Boot with Virtual Threads, Structural Concurrency & Scope Values (JEP 444, JEP 437 & JEP 446)
- Host: GitHub
- URL: https://github.com/jabrena/101-spring-boot-with-loom
- Owner: jabrena
- License: apache-2.0
- Created: 2023-04-21T10:21:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-22T14:03:33.000Z (over 1 year ago)
- Last Synced: 2024-10-11T03:15:09.593Z (about 1 month ago)
- Topics: loom, spring-boot, structural-concurrency, virtual-threads
- Language: Java
- Homepage:
- Size: 114 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 101-spring-boot-with-fibers
A review about how to use Spring Boot with Virtual Threads, Structural Concurrency & Scope Values (JEP 444, JEP 437 & JEP 446)## Requirements
Visit the section about [Requirements](./docs/requirements/README.md) for further information.
## How to build in local?
```
sdk env install
mvn spring-boot:run
mvn spring-boot:run -Dspring-boot.run.profiles=loom
http://localhost:8080/swagger-ui/index.htmltime curl -X 'GET' \
'http://localhost:8080/api/v1/req1?latency=1' \
-H 'accept: application/json'#docker
./docker-build.sh
docker images
docker run -e "SPRING_PROFILES_ACTIVE=loom" docker.io/jab/service:0.1.0-SNAPSHOT
docker compose up -d
docker stats
docker compose logs service-loom
docker compose logs service-default
docker compose down
```## References
- https://www.oracle.com/java/technologies/java-se-support-roadmap.html
- https://openjdk.org/jeps/0
- https://openjdk.org/jeps/444
- https://openjdk.org/jeps/428
- https://openjdk.org/jeps/446
- https://hub.docker.com/_/openjdk
- https://start.spring.io/
- https://spring.io/blog/2022/10/11/embracing-virtual-threads
- https://spring.io/blog/2023/02/27/web-applications-and-project-loom
- https://paluch.biz/blog/182-experimenting-with-project-loom-eap-and-spring-webmvc.html