-
Notifications
You must be signed in to change notification settings - Fork 6
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
Create an optional Kotlin module #1
Comments
Just to understand your stance on the matter @zambrovski, you mean an extension which basis itself on both the reactor and kotlin extension, adding additional features for this combination? |
Not necessary. I think inside of the Kotlin Module there should be a JAR for reactive extensions. I believe Kotlin extension should go for coroutines by default, but if you want to use it with Reactor, the reactive extension can be just leveraged. Using Kotlin reified classes you can skip the specification of the classes every time... I’ll share some code on that... |
Gotcha, thanks for specifying further @zambrovski. |
I agree with @zambrovski that That said, I do not think it is high priority. There are many places throughout the Axon framework where reified types would be helpful. Gateways, repositories, fixtures, you could have an entire extension module of just reified wrapper functions. 😆 |
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 onMono
andFlux
.Let us synchronize with
extension-kotlin
which part goes where.The text was updated successfully, but these errors were encountered: