-
Hi, we're currently using ServerBuilder and adding gRPC services to it like so:
We'd like to add to a blocking task executor, and were wondering what the difference between adding it to the ServerBuilder Also where does the Finally, we noticed that the blocking task executor is by default unbounded. Is there a way for us the make it bounded, and reject requests after a certain limit? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi!
There is a common If you do not call
There's a decorator called On the client side, there's a |
Beta Was this translation helpful? Give feedback.
Hi!
GrpcServiceBuilder.useBlockingTaskExecutor(true)
doesn't add anotherBlockingTaskExecutor
. It merely instructsGrpcService
to invoke your service implementation from theBlockingTaskExecutor
you specified inServerBuilder.blockingTaskExecutor(..)
. By default, unlikegrpc-java
,GrpcService
invokes your service implementation from an event loop thread.useBlockingTaskExecutor()
changes this default behavior so that it works more likegrpc-java
.There is a common
BlockingTaskExecutor
instance provided byCommonPools.blockingTaskE…