-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Implement outbound flow control #6
Comments
@ejona86 @louiscryan I'm looking at the right place add this... I suppose I can just add a |
That requires |
I was thinking that the stub layer would block until notified since we don't expose flow control at the stub layer. Is that not the behavior we had discussed in the past? |
I still feel like we can't block when the application calls StreamObserver.onValue. If it can block, then what is the point of going through the agony of using an async interface? If it can block, I suggest we just trash it altogether and tell people to use the blocking interface. |
Ah right, good point. So I guess we should expose outbound flow control for async clients? |
@louiscryan What are your ideas for outbound flow control? |
Discussed offline. Here's the idea... Basically we just extend
For now I think the method should be called I originally considered that WDYT? |
@louiscryan @ejona86 any thoughts before I start hacking? :) |
@nmittler, SGTM. |
Request is a command in reactive streams hence its lack of "on". It's the
|
Fixed by #348 |
Should be token-based a la reactive streams. Although it also seems that maybe we will only ever have at most 1 token passed to the application.
Currently we provide no method of pushback to the application and buffer infinitely as the application sends.
The text was updated successfully, but these errors were encountered: