You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "David Li (Jira)" <ji...@apache.org> on 2020/09/26 21:22:00 UTC

[jira] [Commented] (ARROW-10106) [FlightRPC][Java] Expose onIsReady() callback on OutboundStreamListener

    [ https://issues.apache.org/jira/browse/ARROW-10106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17202680#comment-17202680 ] 

David Li commented on ARROW-10106:
----------------------------------

This would be a great improvement. I also think having a gRPC-style async API with a StreamObserver-like API would be useful for applications that are concerned with efficiency; FlightStream/FlightProducer is a very convenient API, but the internals do quite a bit of work on behalf of the user to achieve that.

 

> [FlightRPC][Java] Expose onIsReady() callback on OutboundStreamListener
> -----------------------------------------------------------------------
>
>                 Key: ARROW-10106
>                 URL: https://issues.apache.org/jira/browse/ARROW-10106
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: FlightRPC, Java
>            Reporter: James Duong
>            Priority: Major
>
> OutboundStreamListener has a method isReady() that FlightProducers need to poll during implementations of getStream() to avoid buffering too much data.
> An enhancement would be to allow setting a callback to run (for example, notifying a CountdownLatch) so that FlightProducer implementations don't need to busy wait.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)