-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fully Asynchronous ResultScanner #703
Labels
api: bigtable
Issues related to the googleapis/java-bigtable-hbase API.
Comments
gRPC has a concept of StreamObserver which we might be able to use: https://github.com/grpc/grpc-java/blob/master/stub/src/main/java/io/grpc/stub/StreamObserver.java Would that work? It's already built into the infrastructure. |
Yeah, definitely! |
We've been doing work towards this goal. We still want to implement this feature. |
Great to hear, thank you! |
sduskis
added a commit
to sduskis/cloud-bigtable-client
that referenced
this issue
Aug 7, 2016
This will allow us to use the retry functionality in other scenarios, specifically observer based responses as described in googleapis#703.
sduskis
added a commit
to sduskis/cloud-bigtable-client
that referenced
this issue
Aug 8, 2016
This will allow us to use the retry functionality in other scenarios, specifically observer based responses as described in googleapis#703.
sduskis
added a commit
to sduskis/cloud-bigtable-client
that referenced
this issue
Aug 8, 2016
This will allow us to use the retry functionality in other scenarios, specifically observer based responses as described in googleapis#703.
sduskis
added a commit
that referenced
this issue
Aug 8, 2016
This will allow us to use the retry functionality in other scenarios, specifically observer based responses as described in #703.
sduskis
added a commit
to sduskis/cloud-bigtable-client
that referenced
this issue
Aug 10, 2016
The goal here is to move the read rows functionality into the same listener model that all of the other RPCs use. That will help with metrics gathering and the "observer" read rows functionality described in googleapis#703.
sduskis
added a commit
to sduskis/cloud-bigtable-client
that referenced
this issue
Aug 10, 2016
The goal here is to move the read rows functionality into the same listener model that all of the other RPCs use. That will help with metrics gathering and the "observer" read rows functionality described in googleapis#703.
sduskis
added a commit
that referenced
this issue
Aug 11, 2016
The goal here is to move the read rows functionality into the same listener model that all of the other RPCs use. That will help with metrics gathering and the "observer" read rows functionality described in #703.
sduskis
added a commit
to sduskis/cloud-bigtable-client
that referenced
this issue
Dec 19, 2016
The AbstractRetryingRpcListener already has handling for handling rpc level retries, and using that method reduces code and allows some interesting changes such as googleapis#703.
google-cloud-label-sync
bot
added
the
api: bigtable
Issues related to the googleapis/java-bigtable-hbase API.
label
Jan 31, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
Currently
ResultScanner
does not provide the means of subscribing for when a new batch is available. This forces users to potentially block, or perform awkward polling on onResultScanner#available()
if they want to build a fully asynchronous scanner.To patch the current API one could introduce
ListenableFuture<Void> ResultScanner#fetchMoreRows()
as a complement. This would allow users to implement something like this (example using Datastax).As a more radical alternative the extended Observer pattern is a much better model of this behavior in my opinion.
The text was updated successfully, but these errors were encountered: