[grpc-io] Best practice for client channel

2016-09-15 Thread ran.bi via grpc.io
Hi I want to know what is the best practice to use GRPC client channels. For each GRPC client-server pair, should I just create a single channel that is shared among all threads, or should I create a pool of channels and make sure one channel is used by one thread at a time? I am asking this is

Re: [protobuf] Re: [grpc-io] grpcio examples for python 2.7

2016-09-15 Thread 'Feng Xiao' via grpc.io
Protobuf does not support defining custom field types. You need to represent your data using some existing protobuf field types and probably also write some helper functions to do translation between the proto type and the actual type you want to store. On Thu, Sep 15, 2016 at 8:48 AM, 'Nathaniel

[grpc-io] checking generated files in repository

2016-09-15 Thread is1637314
Hi, I am wondering if generated source files from .proto files should be checked into repository. I am particularly referring to python. What do you think ? -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop re

Re: [grpc-io] grpc-python response streaming request always end together

2016-09-15 Thread 'Nathaniel Manista' via grpc.io
On Tue, Sep 13, 2016 at 8:34 PM, wrote: > I'm writing a rpc server/client very similar to the one on tutorial with > server-side pool connection. There are multiple clients and they requsted > at a defferent time. > > However, if the server receive an additional request while already > streaming

Re: [grpc-io] grpcio examples for python 2.7

2016-09-15 Thread 'Nathaniel Manista' via grpc.io
+proto...@googlegroups.com once more with feeling On Thu, Sep 15, 2016 at 8:41 AM, Nathaniel Manista wrote: > +proto...@googlegroups.com > > On Wed, Sep 14, 2016 at 10:10 PM, wrote: > >> >>> gRPC Python sounds like a great fit for your use. >> I think the same. >> >> And another small question.

Re: [grpc-io] grpcio examples for python 2.7

2016-09-15 Thread 'Nathaniel Manista' via grpc.io
+proto...@googlegroups.com On Wed, Sep 14, 2016 at 10:10 PM, wrote: > >>> gRPC Python sounds like a great fit for your use. > I think the same. > > And another small question. A can't find mechanizm in documentation how > can i create user-define type. I need something like decimal, but in > "Sc

Re: [grpc-io] [gRPC-go] Slow when letting grpc handle requests / connections

2016-09-15 Thread ewan
I've attached a few pastebins of code samples: proto file: http://pastebin.com/F0QaTW14 server: http://pastebin.com/rL1YxffU client: http://pastebin.com/fu69Jbkn All being accessed via respective functions, those seen in the server (in the return) all finish in under 1ms (measured) On Thursday,

[grpc-io] GRPC-Java Client did not receive all the message from Server Stream

2016-09-15 Thread Avinash Dongre
I have client which make a request to server and Server in reply sends a Stream-reply, This works fine for small number of message but when the number of messages are large then My client is shutdown before I could receive all the message. Following is how I have implemented Server RPC Streamin