Designing, Implementing, and Using Reactive APIs
summary
Cloud Foundry Java Client becomes a reactive library built with Project Reactor to avoid blocking JVM threads across ~550 CF REST endpoints and operations like CF push that trigger at least 13 network requests. Methods always return Mono/Flux (no void), pagination uses flux.range + flatMap to fetch pages in parallel, StepVerifier handles asynchronous tests, and a countdown latch or blocking conversion keeps short-lived mains from exiting. Error signals flow as values and can be transformed or resumed.
AI-written summary · about
chapters (17)
- 0:00Intro
- 1:05Introduction to Reactive Programming
- 2:20Cloud Foundry Java Client
- 4:28Strongly Typed Request and Response Payloads
- 5:40When To Use Reactive
- 8:27What Should a Reactive API Return?
- 9:27Using a Flux Response
- 10:19Using a Mono Response
- 11:48Imperative Operation void delete(String id)
- 12:09Reactive Operation
- 15:25Conditional Logic
- 17:39Empty Logic
- 20:09Testing using StepVerifier
- 20:31Test Multiple Values
- 21:17Countdown Latches
- 23:25Error Handling
- 28:13Designing. Implementing and Using Reactive Als
related talks
01h 11mDesigning, Implementing, and Using Reactive APIs
06mPhil Clay at SpringOne 2020
46mMoving from Imperative to Reactive
53mRefactor to Reactive with Spring 5 and Project Reactor
56mKEYNOTE - Designing Applications: The Reactive Way
41mThe definite guide to reactive programming in Java
47mReactive Spring
24mBringing Reactive Programming to Java and Microservices
