sch39
ArticlesAboutID

Articles

  • gRPC Client in WebFlux and Testing StrategyOct 2026This article adds a gRPC client to movies-info-service, which remains WebFlux. The gRPC stream is wrapped into a Flux, combined with movie data via zipWith, and StatusRuntimeException is mapped to HTTP status codes. Everything is tested against a fake gRPC server via in-process transport, and the tests still pass.
  • StreamObserver to Reactor Bridge: Unary, Streaming, Backpressure, and ErrorsOct 2026This article consolidates the StreamObserver to Reactor bridge into a single helper, GrpcReactiveBridge, for unary and server streaming RPCs. The streaming helper follows isReady() as backpressure and disposes the pipeline when the client cancels, then domain errors are mapped to gRPC Status via GrpcExceptionHandler and proven with tests.
  • Reactor and WebFlux: Mono, Flux, Operators, and the Event LoopOct 2026This article proves through tests that concat, merge, and zip produce different emission orders, that the switchIfEmpty argument is evaluated at assembly time unless wrapped in Mono.defer, and that blocking work must be moved to boundedElastic so it does not hold the Netty event loop thread. Everything runs on Spring Boot 4.1 with StepVerifier and WebTestClient.
© 2026 sch39
PrivacyDisclaimerContactGitHubLinkedInRSSSitemap