协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
webflux-reactive-patterns【开发与工程】Use when the complete Spring Boot 4 request path is reactive: WebFlux controllers, Reactor pipelines, R2DBC persistence, streaming, backpressure, or cancellation. For defining and registering declarative outbound API interfaces, use http-interface-clients.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use WebFlux when the complete request path benefits from non-blocking I/O.
Mono or Flux; never call subscribe() in request-handling code.flatMap, concatMap, or sequential composition according to ordering needs.boundedElastic at the adapter boundary.Context, not ThreadLocal.onErrorResume only for a defined fallback and avoid onErrorContinue.StepVerifier for publisher behavior and WebTestClient for contracts.examples/good-reactive-service.java and examples/bad-reactive-service.java.block() or subscribe() in application flow - keep subscription with the runtime.ThreadLocal for tenant or trace data - use Reactor Context.flatMap - set concurrency from downstream limits.Mono.just - this still blocks the event loop.