Skip to content
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

webflux support #24

Open
tubbynl opened this issue May 26, 2022 · 3 comments
Open

webflux support #24

tubbynl opened this issue May 26, 2022 · 3 comments

Comments

@tubbynl
Copy link

tubbynl commented May 26, 2022

i really liked your talk and this concept, it would be even more awesome if this also works with

<dependency>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-webflux</artifactId>
</dependency>

in https://developer.okta.com/blog/2022/03/24/thymeleaf-security#create-the-first-controller-class there's an example controller on how to render a template async, it's not really a thing (yet) but good for future support

@tubbynl
Copy link
Author

tubbynl commented May 26, 2022

it will probably require an webflux alternative to HtmxMvcConfiguration

@netbizltd
Copy link

Regarding htmx-spring-boot (not using thymeleaf but freemarker):

Any workaround for making out-of-band swaps (HtmxResponse) work in reactive Spring Boot?

I found that none of the annotations (@HxRequest, @HxTrigger) work and HtmxResponse throws exception at runtime.

@dgradecak
Copy link

reactive is quite different than servlet or imperative programming. Thus you would need much more different handling.
However, even the spring folks are re-writing their Spring Cloud Gateway using servlets, and it was IMO the best use case for async/reactive programming. Another thing is that now we have virtual threads in Java, so for most of the applications there would be no real benefit using reactive anymore, sure there will still be some cases where it has better performances ... "but is it really worth the effort"

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

No branches or pull requests

3 participants