What the Flux or: How Learn to Stop Worrying and Love Reactor
summary
Migrates a message-center platform from CompletableFuture to Project Reactor (Flux/Mono) with Spring WebFlux, consolidates former microservices into a single stateless app, and cuts blocking IO by making the end-to-end chain reactive. Production CPU peaks run ~26–28%, backpressure sits on Kafka, and error handling uses onErrorResume/onErrorContinue. Adds tooling for debugging and tests: reactor-debug-agent, StepVerifier, checkpoints and BlockHound. Finds thread-local tracing issues, rewrites methods into small named stages, and reports clearer tests and measurable performance and memory gains.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 0:24Project reactor overview
- 0:43Use case at ING
- 5:20Why and when to use reactive
- 13:16Scheduling models
- 15:00Handling exceptions
- 15:36Reactive error strategies
- 17:12Debugging reactive code
- 20:04Testing reactive streams
- 23:51Common reactive pitfalls
- 24:04Map vs flatMap
- 24:59Threads and local storage
- 26:49Structuring reactive code
- 32:07BlockHound tooling
- 33:08Lessons and Q&A
- 42:49Closing
