Moving from Imperative to Reactive
summary
Converts a simple Spring Boot + JPA REST app to a working reactive service using Spring WebFlux and Project Reactor, replacing RestTemplate with WebClient and Tomcat with Netty. Shows concrete code: repository findAll → Flux.fromIterable, findById → Mono.orEmpty, flatMap to parallelize pension lookups and save, errors propagated as monos and mapped to 404s. Observes Reactor using CPU-bound default threads (four on a 4‑core box) and measures faster pension cleanups; demo runs end-to-end.
AI-written summary · about
chapters (8)
- 0:00Start
- 0:16What is this?
- 2:19Reactive Manifesto
- 3:51Reactive Streams
- 5:30Project Reactor
- 7:00Flux & Mono
- 40:54Summary
- 43:40Resources
related talks
57mRefactor to Reactive with Spring 5 and Reactor 3
51mFull-stack Reactive Java with Project Reactor & Spring Boot 2
01h 00mMigrating from Imperative to Reactive
01h 00mReactive Spring
53mRefactor to Reactive with Spring 5 and Project Reactor
51mGoing Reactive with Spring 5 & Project Reactor
01h 01mReactive web services
56mReactive Spring
