Yes, all protobuf v3 messages and immutable in Java so it's thread-safe to 
be used concurrently. (Note that you should not send concurrent messages 
over the same stream, because that will corrupt the data that grpc is 
sending out.)

On Sunday, January 30, 2022 at 7:43:36 AM UTC-8 [email protected] wrote:

> Hi,
>
> We have a bi-di streaming service, the server is in gRPC Java. 
>
> Many of the server-side ProtoBuf messages are immutable, i.e. can be 
> created once and sent to all client channels.  Right now new instance is 
> created and sent to each client.
>
> Is sending the same ProtoBuf message, concurrently,  to multiple outbound 
> streams possible and thread-safe thing to do?
>
>
> Thanks
>

-- 
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/5d87f380-46a1-472a-bb47-43275c58991an%40googlegroups.com.

Reply via email to