~/talk

Refactor to Reactive with Spring 5 and Reactor 3

Talkat JDD 2018 · 2018-10-08..10-09· [reactive-programming, spring]
slides:none on file

A Spring MVC chat is refactored stepwise to Spring 5/WebFlux and Reactor: controllers return Mono/Flux, WebClient replaces RestTemplate, a GitHub Gitter stream is consumed as a Flux, and repositories move from JPA/JDBC to R2DBC reactive drivers. A ReplayProcessor provides server-side caching and fan-out; server-sent events push updates to browsers; retryBackoff, timeouts and nonblocking DB access keep the UI responsive when DB or network fail. Switching Tomcat to Netty claims roughly 2x throughput. Demo builds, streams, and survives DB/network outages. WebFlux operators transform and merge initial and streaming results.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 2:45Current non-reactive app
  3. 13:19Refactor mindset change
  4. 16:35Migrate to Spring WebFlux
  5. 19:47Refactor API to server push
  6. 31:56Remove blocking operations
  7. 42:09Implement push model
  8. 46:08Switch to Netty server
  9. 49:57Final reactive system demo
  10. 53:14Key takeaways and resources
~/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.