This is expected as with streaming we rely on timing to coalesce small
writes whereas with batching you can precisely control the number of
messages in a write to the socket.

There's an open issue (and prototype) for corking which allows you to
control the grain of writes to a socket without needing to change your
service definition

-louis (from phone)

On Mar 31, 2017 11:06 PM, "ran.bi via grpc.io" <grpc-io@googlegroups.com>
wrote:

> I am using grpc-java.
>
> On Friday, March 31, 2017 at 3:01:30 PM UTC-7, Craig Tiller wrote:
>>
>> Which language are you using?
>>
>> On Fri, Mar 31, 2017 at 3:00 PM ran.bi via grpc.io <
>> grp...@googlegroups.com> wrote:
>>
>>> I have a Grpc service that streams large number of small messages to
>>> client, and I noticed that the streaming throughput improved when I changed
>>> the rpc to stream a batch of small messages at once.
>>> There are two questions:
>>> 1. why the performance improved?
>>> 2. why doesn't grpc do similar optimization internally?
>>>
>>>
>>> Best
>>> Ran
>>>
>>> --
>>> 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+u...@googlegroups.com.
>>> To post to this group, send email to grp...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/grpc-io.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/grpc-io/d7391932-213b-46bf-b8a1-2ee5e144950a%40googlegroups.com
>>> <https://groups.google.com/d/msgid/grpc-io/d7391932-213b-46bf-b8a1-2ee5e144950a%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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 post to this group, send email to grpc-io@googlegroups.com.
> Visit this group at https://groups.google.com/group/grpc-io.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/grpc-io/15f3b918-894e-462b-baec-7b1ebf3b1251%40googlegroups.com
> <https://groups.google.com/d/msgid/grpc-io/15f3b918-894e-462b-baec-7b1ebf3b1251%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to grpc-io@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CADQ0XY1ZtRM3Spe5SwdXi434fOzanqW2rz7EOPt32tHFd5fm4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to