New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add first version of the guide for writing REST microservices using virtual threads #27840
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
I've added some comments
Virtual threads are still an experimental feature, you need to start your application with the `--enable-preview` flag: | ||
|
||
[source, bash] | ||
---- | ||
java --enable-preview -jar target/quarkus-app/quarkus-run.jar | ||
---- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The step about building the application has been skipped. Is there anything special users need to do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a paragraph. Also explain this wonderful preview.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not anymore, they only need to worry about the building step if they use the netty-loom extension, this is detailed in the part about the extension
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what you mean @cescoffier ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dev mode required a -Dloom-open
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't anymore, it does if you use the Netty-loom extension though but there is a part about it in the guide
We will give a brief overview of the topic here, please refer to the link:{vthreadjep}[JEP 425] for more information. | ||
|
||
Virtual threads are a feature available since Java 19 aiming at providing a cheap alternative to platform threads for | ||
IO-bound workloads. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try to use one sentence per line.
@anavarr except for the name that needs to be fixed, the rest looks good. |
3fd94bb
to
bba0f3c
Compare
all good, put Quarkus Virtual Thread support in the title, rebased, squashed |
bba0f3c
to
af98811
Compare
Small nitpick: I would just call the file |
af98811
to
d9499f2
Compare
Just a reminder when it's all ready to go, we'll need a squash and rebase onto main |
b2dd87f
to
d9499f2
Compare
…sing virtual threads Co-authored-by: Georgios Andrianakis <geoand@gmail.com> and Clément Escoffier <clement.escoffier@redhat.com>
d9499f2
to
7270dc6
Compare
Yep, I'm rebasing as main grows |
@gsmet I put the backport label, but as it's a guide, I'm not sure you can backport it. It's not mandatory, it would just be nice to have it in. |
This guide contains