~/talk

From Java WebFlux to Kotlin Coroutines, the Journey...?

TalkinFrenchat Devoxx France 2021 · 2021-09-29..10-01· [reactive-programming, java]
links:none on file
links:none on file
slides:none on file

A team migrates a Spring Boot REST application from Java WebFlux/Reactor to Kotlin using coroutines and Flow while keeping Spring WebFlux, WebClient, reactive Spring Data and Mongo. They must rebuild mappers, routing and validation, replace Mono/Flux with suspend functions and Flow, handle Reactor pitfalls (Mono.defer vs Mono.just, reading response bodies to close WebClient connections), adapt models for Kotlin null-safety via data classes/extensions, and update about 3,000 Mockito tests; the mapping and test rewrites are the main effort.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05Application overview
  3. 2:52Kotlin migration and deps
  4. 3:56WebFlux and reactivity
  5. 6:02Functional validation and filters
  6. 7:31Database and cache
  7. 8:13REST calls and Mono defer
  8. 9:56Kotlin basics
  9. 12:42Kotlin routing
  10. 15:29Modeling issues
  11. 16:53Java to Kotlin
  12. 17:35Null safety and data classes
  13. 18:39Safe mapping
  14. 19:40Extensions for readability
  15. 20:23Reified validation
  16. 21:48Generic types
  17. 22:09Coroutines intro
  18. 22:50Flow and coroutines
  19. 23:55Coroutine validation
  20. 25:00Unit tests with Mockito
  21. 26:23Complex types and casting
  22. 27:06WebFlux vs coroutines tests
  23. 27:47Conclusion and key differences
~/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.