Hi everyone,
I'm trying to understand how many streams are getting created in one grpc 
connection (Bidirectional streaming) whenever I call onNext() using a 
StreamObserver object. Below is my code context

StreamObserver<Response> responseStreamObserver1 = getResponseObserver();  
StreamObserver<Response> responseStreamObserver2 = getResponseObserver();
StreamObserver<Request> streamClientSender1 = 
stub.sendRequest(responseStreamObserver1);
StreamObserver<Mbus> streamClientSender2 = 
stub.sendRequest(responseStreamObserver2);

My question is, 
1. when the program calls streamClientSender1.onNext(request), request will 
be sent in a stream, if I call it again will it be in the same stream as 
long as the age of the stream is within max connection age ?
2. does streamClientSender1.onNext() and streamClientSender2.onNext() use 
different streams to send request, since they are two different 
streamObserver objects. 
3. Is there a way to get StreamID of streams created and print it as a 
verification step so that the above two questions can be answered ?

Thanks and regards,
Darshan

-- 
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/ce8fd1bf-bd16-4b10-96b6-65926cc9d5f9n%40googlegroups.com.

Reply via email to