Hi,

I have Service A which has to call Service B and C asynchronously. So i 
used Java 8 CompletableFuture supplyAsync method.

*Problem: *
Service A gets JWT token from the caller , using Server interceptor it 
validates the token and if the token is valid it is set in the gRPC Context 
to propagate token to further client calls.

When i put the CompletableFuture , it creates a new thread for Service B 
and C calls so the gRPC context where the token set is lost. Service B and 
C calls are failing with missing token.


Background: Earlier Service A calls only B. So the ServerInterceptor which 
sets the token was available in clientInterceptor for calling B.

As a new enhancement added Service C call.


-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/839eefb6-ccf6-42d3-93b0-deafde6c3240n%40googlegroups.com.

Reply via email to