Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

Quarkus Non blocking annotation #9

Open
franz1981 opened this issue Aug 25, 2024 · 0 comments
Open

Quarkus Non blocking annotation #9

franz1981 opened this issue Aug 25, 2024 · 0 comments

Comments

@franz1981
Copy link

franz1981 commented Aug 25, 2024

https://github.com/rmh78/quarkus-performance/blob/master/demo-quarkus/src/main/java/de/harald/test/demo/WelcomeResource.java should use a NonBlocking annotation in the endpoint because the computed return value is not "async" and the Quarkus ergonomic will handoff it to a blocking thread pool (and back to the event loop), more suitable for blocking operations e.g. hibernate queries.

Both peak throughout and memory usage will change dramatically

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant