Thanks for the reply! On Mon, Apr 3, 2017 at 5:57 AM Louis Ryan <[email protected]> wrote:
> 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" <[email protected]> > 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 < > [email protected]> 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 [email protected]. > To post to this group, send email to [email protected]. > 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/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 [email protected]. > To post to this group, send email to [email protected]. > > > 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 [email protected]. To post to this group, send email to [email protected]. 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/CA%2BMQGYrCX4S9eDpvwx57WbMfX1uNiedoLhiVZEf1%2BneCZnznzw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
