~/talk

Asynchronous Programming with Kotlin Coroutines in Spring

Talkat KotlinConf 2017 · 2017-11-02..11-03· [kotlin, spring]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 6:18Signature
  3. 9:19Web Methods
  4. 10:32Asynchronous Code
  5. 15:50GitHub
  6. 16:12Simple Endpoint
  7. 20:12Thread Pool
  8. 22:37Code in Context
  9. 28:57Nonblocking IO
  10. 35:12Web Flux
  11. 35:44Spring DataMongo Reactive
  12. 36:35Spring DataMongo suspending functions
  13. 38:50Convert existing applications to Kotlin
  14. 40:23More features
  15. 42:27Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.