The new Spring reactive way is Reactor + Kotlin Coroutines (with suspend functions). This allows for sequential composition of functions working on reactive streams.
I would suggest to create an additional Kotlin module, which allows for usage of reified types in query and command gateways and allow for usage of suspend functions instead of chains of flatMap calls on Mono and Flux.
Let us synchronize with extension-kotlin which part goes where.
The new Spring reactive way is Reactor + Kotlin Coroutines (with suspend functions). This allows for sequential composition of functions working on reactive streams.
I would suggest to create an additional Kotlin module, which allows for usage of reified types in query and command gateways and allow for usage of suspend functions instead of chains of
flatMapcalls onMonoandFlux.Let us synchronize with
extension-kotlinwhich part goes where.