[grpc-java] Request throttling

82 views
Skip to first unread message

ran...@addepar.com

unread,
Jul 20, 2016, 2:49:44 PM7/20/16
to grpc.io
I have 2 questions after reading through solution posted in https://groups.google.com/forum/#!topic/grpc-io/LTFpelGTdtw
  1. Is it possible to queue-up requests instead of dropping them?
  2. When Listener.onComplete is called, can I assume all resources used for handling the request has been released ( buffers are flushed, workers are released)?

Best

Louis Ryan

unread,
Jul 26, 2016, 10:14:55 PM7/26/16
to ran...@addepar.com, grpc.io
On Wed, Jul 20, 2016 at 11:49 AM, ran.bi via grpc.io <grp...@googlegroups.com> wrote:
I have 2 questions after reading through solution posted in https://groups.google.com/forum/#!topic/grpc-io/LTFpelGTdtw
  1. Is it possible to queue-up requests instead of dropping them?

If you know the upper bound you want on concurrent calls you can size the executor passed to ServerBuilder appropriately which will cause queuing to occur naturally.
  1. When Listener.onComplete is called, can I assume all resources used for handling the request has been released ( buffers are flushed, workers are released)?
Yes 

Best

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/4acd365d-b693-440a-ab8d-500c1ffd2f3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages