Headache-Free Reactive Programming With Spring Boot and Kotlin Coroutines
Вставка
- Опубліковано 28 лис 2024
- When it comes to throughput, resource efficiency, parallelism, and reactive streams -if you want to get the most out of Spring Boot - there is no way around its reactive stack WebFlux. However, the price you pay regarding WebFlux’s complexity, testability, and maintainability is exceptionally high and will likely cause you a lot of problems.
In this webinar, you will learn how Spring Boot’s coroutine support can wipe out all the downsides of the “raw” WebFlux approach and provide you with the best of both worlds: reactive characteristics without the complexity. Using many live-coded examples, we will start at the very beginning by considering when and why you would need WebFlux (and why runBlocking{...} is no alternative). With this foundation, we will explore Kotlin’s reactive building blocks, such as coroutines and Kotlin Flows, and demonstrate how to seamlessly integrate them with Spring Boot WebFlux.
At the end of our journey, we will have built a reactive API that uses non-blocking remote API calls and async relational database access while leveraging parallelism and reactive streams. By then, you will know how to implement reactive applications without the headache.
Speaker: Urs Peter
#kotlincoroutines #reactiveprogramming #webflux #kotlin #springboot #tutorial
We are using Kotlin Corourines/Spring Data R2dbc/jOOQ + Postgres in our project. We have just updated to JDK21 and Kotlin 1.9.20.
Same here! Beautiful stack to work with... 👍
I worked at a company that used Kotlin + Arrow-kt + Http4k, it was 🔥, it was a blast to work there
Not on the reactive bandwagon yet, but can confirm that jOOQ is a blessing! I learned more SQL then ever before by starting to use jOOQ 😂
What did you do to get kotlin 1.9.20 running with JDK21? I'll get exceptions especially with coroutines library?
Always nice to hear and learn from Urs! ❤ thank you very much
kudos to Anton for asking the right question at the start.
I'd say that it is an obvious question :)
Great presentation!
Amazing sessions!
That curl tests look cool. Is it some tool for it?
Reactor imlements prefetching and operator fusing.
Is it also the same when using coroutines approach?
How exactly is it integrated into reactive approach?
can someone share source code or github link of this project so we can play around.
Great work!
Thank you Urs!
Excellent training!
One question: according to your experience: what is the best choice: Kotlin + Ktor or Kotlin + Spring Boot?
Regards,
I'm not him but for me Kotlin plus Spring Boot wins because in an enterprise setup there are often many other things you need that either come with Spring or integrate nicely with Spring.
For small projects or projects with very few dependencies you could go with Ktor and Koin
Thanks for this nice talk❤
Great information, thank you !
Great session!
Could you share the presentation slides for downloading?
Reactive programming and Headache-Free in the same sentence lol
I don't know why Anton decided to include his video flux. I understand that as a host he may not be the target audience or has other stuff to manage than the content of the talk, but when watching the video, it's very hard to not be distracted by what may appear as a discussion between 2 people where one is visibly not listening and not caring. Great video still, and great guest speaker, just a recommendation for next time (either pretend to listen, or cut the camera / edit it out form the final video)
Nice, very interesting.
Lies, spring(-boot) is a royal mess and kotlin is reskinned java. Go Haskell and feel paradise
Mashallah brother