Retrofit Your Java App with a Reactive Flow Pipeline
summary
Prototype code shows a two-stage pipeline: a Scala Akka Streams consumer reads Kafka topic A, wraps existing synchronous logic and forwards payloads over RSocket to a Java processor that simulates variable work and writes to Kafka topic B. Backpressure propagates: slow downstream processing stops upstream Kafka consumption. The demo uses Docker Compose, Kafka, Quarkus, and Project Reactor on the Java side; a custom RSocket sink is implemented and works, though RSocket docs are sparse and mixing different reactive stacks proves fiddly.
AI-written summary · about
