Hello!

I have been using gRPC a lot recently, and after having worked on it too, I 
have encountered some some questions I couldn't find the documentation 
for.  I was hoping to have the expected behavior confirmed here, and maybe 
get the answers into the documentation.

1.  What thread do ServerInterceptors run on?   I would assume it's the 
ServerBuilder executor, but that presents a problem.  To limit the number 
of threads, we need to limit the number of calls.  The ServerInterceptor is 
the natural place to do this, but if the executor is used to enforce the 
call limit, it's too late.  We already spent a thread on it.

2.  What happens when there is both a Context deadline and an AbstractStub 
deadline?  I couldn't find in the documentation which one takes precedence, 
or how they are combined.   I assume the Context deadline fires anyways if 
present, but that means that using AbstractStub.withDeadlineAfter() may be 
misleading.   The deadline would not be able to be increased.

Carl









-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/grpc-io/495e9210-d3b8-4b94-860d-d4a495d5ae0fn%40googlegroups.com.

Reply via email to