Headache-Free Reactive Programming With Spring Boot and Kotlin Coroutines

Ғылым және технология

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

Пікірлер: 24

  • @HantsyBai
    @HantsyBai7 ай бұрын

    We are using Kotlin Corourines/Spring Data R2dbc/jOOQ + Postgres in our project. We have just updated to JDK21 and Kotlin 1.9.20.

  • @tobolajan

    @tobolajan

    7 ай бұрын

    Same here! Beautiful stack to work with... 👍

  • @captainnoyaux

    @captainnoyaux

    7 ай бұрын

    I worked at a company that used Kotlin + Arrow-kt + Http4k, it was 🔥, it was a blast to work there

  • @melo0187

    @melo0187

    6 ай бұрын

    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 😂

  • @csvxmlfan3853

    @csvxmlfan3853

    6 ай бұрын

    What did you do to get kotlin 1.9.20 running with JDK21? I'll get exceptions especially with coroutines library?

  • @iamrigank
    @iamrigank7 ай бұрын

    Always nice to hear and learn from Urs! ❤ thank you very much

  • @slaynnyt8130
    @slaynnyt81307 ай бұрын

    Great presentation!

  • @kef973
    @kef9737 ай бұрын

    Great information, thank you !

  • @qweezique
    @qweezique7 ай бұрын

    Great work!

  • @tkblackbelt2
    @tkblackbelt27 ай бұрын

    Amazing sessions!

  • @Poisonedyouth79
    @Poisonedyouth797 ай бұрын

    Thanks for this nice talk❤

  • @vamsivegi
    @vamsivegi7 ай бұрын

    kudos to Anton for asking the right question at the start.

  • @AntonArhipov

    @AntonArhipov

    7 ай бұрын

    I'd say that it is an obvious question :)

  • @sakthisomaskandan6438
    @sakthisomaskandan6438Ай бұрын

    Great session!

  • @andriyzhuk8830
    @andriyzhuk88305 ай бұрын

    Nice, very interesting.

  • @andrewsneck
    @andrewsneck7 ай бұрын

    That curl tests look cool. Is it some tool for it?

  • @AnotherDimension
    @AnotherDimension4 ай бұрын

    Reactor imlements prefetching and operator fusing. Is it also the same when using coroutines approach? How exactly is it integrated into reactive approach?

  • @jcolindres001
    @jcolindres0017 ай бұрын

    Thank you Urs! Excellent training! One question: according to your experience: what is the best choice: Kotlin + Ktor or Kotlin + Spring Boot? Regards,

  • @davio14

    @davio14

    7 ай бұрын

    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

  • @pankajzanzane12
    @pankajzanzane124 ай бұрын

    can someone share source code or github link of this project so we can play around.

  • @davidluna9722
    @davidluna97226 ай бұрын

    Could you share the presentation slides for downloading?

  • @ninimouss
    @ninimouss4 ай бұрын

    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)

  • @PixelHamster
    @PixelHamster7 ай бұрын

    Reactive programming and Headache-Free in the same sentence lol

  • @eskii2
    @eskii22 ай бұрын

    Lies, spring(-boot) is a royal mess and kotlin is reskinned java. Go Haskell and feel paradise

Келесі