Asynchronous Programming with Kotlin Coroutines in Spring
summary
Shows how Kotlin 1.1 coroutines plug into Spring using the spring-kotlin-coroutine library by implementing a MethodArgumentResolver for Continuation and an AsyncHandlerMethodReturnValueHandler that maps coroutines to Spring DeferredResult, then running a live demo that converts a blocking app to suspending endpoints. Demonstrates custom CoroutineContexts (an external-service context thread pool), switching to WebClient/WebFlux + Netty, reactive Mongo repositories, suspending event listeners, and confirms the examples run end-to-end.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 6:18Signature
- 9:19Web Methods
- 10:32Asynchronous Code
- 15:50GitHub
- 16:12Simple Endpoint
- 20:12Thread Pool
- 22:37Code in Context
- 28:57Nonblocking IO
- 35:12Web Flux
- 35:44Spring DataMongo Reactive
- 36:35Spring DataMongo suspending functions
- 38:50Convert existing applications to Kotlin
- 40:23More features
- 42:27Questions
related talks
49mAsynchronous programming with Kotlin coroutines in Spring
01h 03mUsing Kotlin Coroutines for Asynchronous and Concurrent Programming
30mBetter asynchronous programming with Kotlin Coroutines
40mConcurrency made easy with Kotlin Coroutines
02h 10mDeepdive into Reactive Spring with Coroutines and Kotlin Flow
43mCoroutines for Java Developers
47mKotlin Coroutines
52mSpring Boot with Kotlin, Kofu and Coroutines
