pdegand
12/09/2019, 2:55 PMrunBlocking { }
inside the WebMVC controller until all of the controller are refactored, and when we are ready, to remove the dependency to webmvc to enable the full reactive stack, remove all the runBlocking
and convert the controller methods to suspend
?sdeleuze
12/09/2019, 3:01 PMDeferred
should be supported via the Reactive adapter in Spring MVC, you could maybe wrap Coroutines code in async { }
and just return the related Deferred
return value. That's much better than runBlocking { }
.pdegand
12/09/2019, 3:17 PMMono<>
from a WebMVC controller as well ?
I should look into this “Reactive adapter”. Is this what’s described as HttpHandler in the doc ? https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html#webflux-httphandlerpdegand
12/09/2019, 3:21 PMsdeleuze
12/09/2019, 3:28 PMMono
should work as wellsdeleuze
12/09/2019, 3:54 PMMono.just("foo)
does it work ?pdegand
12/09/2019, 4:13 PMpdegand
12/09/2019, 4:14 PMOncePerRequestFilter
that was preventing the body to be returned, when i removed it, it works fine when returning a Mono
.pdegand
12/09/2019, 4:15 PMasync
if I don’t have a scope. Is using GlobalScope
inside a controller a good idea or should I stick with runBlocking
?sdeleuze
12/09/2019, 4:17 PMGlobalScope.async { }
pdegand
12/09/2019, 4:47 PMpdegand
12/09/2019, 4:47 PMAnders Mikkelsen
12/10/2019, 1:53 PM