~/talk

Migrating from Imperative to Reactive

Talkat Devnexus 2022 · 2022-04-12..04-14· [java, reactive-programming]
links:none on file
slides:none on file

Shows how to migrate a Spring Boot webmvc app to WebFlux by switching annotations to the functional route+handler API, replacing spring-webmvc with spring-webflux and JPA/JDBC with R2DBC reactive repositories; introduces Mono (0..1) and Flux (unbounded), reintroduces a distributed cache (Hazelcast or similar) to avoid DB hits, and uses BlockHound at runtime to detect blocking calls. Demonstrates that schema and connection setup must be written manually, and argues reactive reduces resource use and improves perceived performance under load.

AI-written summary · about

  1. 0:00Introduction to reactive migration
  2. 10:10Migrating from annotations to functional API
  3. 25:15Switching to WebFlux and Project Reactor
  4. 35:43Reactive database with R2DBC
  5. 50:06Blocking calls and BlockHound tool
  6. 58:18Resources and Q&A
~/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.