Spring Boot with Kotlin, Kofu and Coroutines
summary
Live coding shows a four-step migration: Java+JPA → idiomatic Kotlin → reactive SQL with R2DBC reactive SQL → WebFlux → coroutines + Flow, and then explicit configuration with Kofu Kotlin DSL. Code demonstrates converting Mono/Flux to suspend/Flow, using WebClient for remote calls, running the app and tests successfully. Spring Boot 2.x WebFlux and coroutine support are production-ready; R2DBC drivers and Kofu are still incubating and need more maturity before full production use.
AI-written summary · about
chapters (4)
- 0:00Start
- 0:54steps to go from a typical Spring Boot application in Java to an idiomatic Kotlin one
- 6:56Step 2 WebMvc with JPA to WebFlux with R2DBC
- 14:32Hot or cold streams Finite or infinite number of elements • Backpressure via suspending functions . Operators are implemented as extensions . Operators are easy to implement • map operator supports asynchronous operation
related talks
52mSpring Boot with Kotlin, Kofu and Coroutines
47mSpring Boot with Kotlin, Kofu and Coroutines
02h 10mDeepdive into Reactive Spring with Coroutines and Kotlin Flow
44mKotlin and Spring Boot, a Match Made in Heaven
29mFrom Java WebFlux to Kotlin Coroutines, the Journey...?
42mThe State of Kotlin Support in Spring
27mState of Kotlin Support in Spring
46mFunctional web applications with Spring and Kotlin
