Interesting - thank you very much! I did see this in the StreamObserver doc <https://grpc.github.io/grpc-java/javadoc/io/grpc/stub/StreamObserver.html>:
"Since individual StreamObservers are not thread-safe, if multiple threads will be writing to a StreamObserver concurrently, the application must synchronize calls" Based on that, since it is a StreamObserver, I figured that the gRPC framework must also be abiding by this contract. Good to know otherwise, maybe I misunderstood the above doc. Thanks again. On Wednesday, April 29, 2020 at 5:05:27 PM UTC-5, Christoph John wrote: > > No, they are not serialized. You need to do that by yourself. Otherwise > you might encounter strange behaviour. I opened an issue once because I > stumbled upon the same problem: > https://github.com/grpc/grpc-java/issues/6323 > Also see > https://github.com/grpc/grpc-java/blob/master/stub/src/main/java/io/grpc/stub/StreamObserver.java#L32 > > Cheers, > Chris. > > On 29.04.20 23:44, [email protected] <javascript:> wrote: > > Is it the case that (in the Java bindings), the gRPC framework will > serialize invocations to the StreamObserver used to process incoming client > requests (e.g., onNext, onError, onCompleted)? I.e. they will never be > invoked concurrently. > > I looked around before I asked but couldn't find the answer. > > Would appreciate any help! > -- > 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] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/grpc-io/1024fc7e-678f-45fd-a2ba-29cb3c118fff%40googlegroups.com > > <https://groups.google.com/d/msgid/grpc-io/1024fc7e-678f-45fd-a2ba-29cb3c118fff%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- 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 on the web visit https://groups.google.com/d/msgid/grpc-io/db9926db-6009-4c44-a811-0f4bb6312dfa%40googlegroups.com.
