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 chris...@gmail.
Hi,
Thank you for your reply. It is very useful, will save CPU and GC times.
For sending, I already synchronize calling "onNext()" on the outbound
stream observer, since sending may happen directly if isReady() is true(by
the caller thread) or via the setOnReadyHandler() Runnable, i.e. some
t
In async stream programming, when the same message is sent to multiple
clients with ServerAsyncWriter::Write(), does it serialize the message for
each client? Could we serialize the message only once?
在2022年2月5日星期六 UTC+8 01:42:55 写道:
> Hi,
>
> Thank you for your reply. It is very useful, will s