mmodzelewski commented on issue #2201:
URL: https://github.com/apache/iggy/issues/2201#issuecomment-3341326670

   Hi @chiradip,
   Instead of adding a CompletableFuture API, it might be better to expose a 
reactive API with Project Reactor (Mono/Flux).
   
   CompletableFuture covers single async results, but polling messages is 
naturally a streaming use case.
   
   Reactor provides backpressure and integrates well with frameworks like Flink 
and WebFlux.
   
   Example:
   ```
   Mono<Stream> stream = client.streams().getStream(id);
   Flux<PolledMessages> messages = client.messages().pollMessages(...);
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to