[grpc-io] Connection deduplication

2018-10-26 Thread 'Ruslan Nigmatullin' via grpc.io
Hi, It looks like grpc-core performs a deduplication of TCP connections for subchannels with the same channel arguments [1]. However it doesn't look like it's a case for grpc-go implementation. It sounds like a useful behavior in the context of grpclb, as it allows reducing number of connections t

[grpc-io] Re: grpc multithreading

2018-10-26 Thread 'Srini Polavarapu' via grpc.io
Replied on the other thread you opened. On Wednesday, October 24, 2018 at 10:06:15 PM UTC-7, rob.vai...@gmail.com wrote: > > Hi, > > How to write the program of grpc multithreading in python? please share > some references with me. > Thank you > -- You received this message because you are sub

Re: [grpc-io] Re: python support multi-thread

2018-10-26 Thread 'Srini Polavarapu' via grpc.io
On the server you can provide a threadpool like this: server = grpc.server(futures.ThreadPoolExecutor(max_workers=10)) This will spawn a maximum of 10 concurrent threads to handle requests in parallel. See this example: https://github.com/grpc/grpc/blob/master/examples/python/helloworld/greeter

Re: [grpc-io] Re: python support multi-thread

2018-10-26 Thread 'Carl Mastrangelo' via grpc.io
+Lidi On Fri, Oct 26, 2018 at 11:23 AM Vaibhav Bedi wrote: > Can you share some reference? > ᐧ > > On Fri, Oct 26, 2018 at 11:51 PM Vaibhav Bedi > wrote: > >> My problem is >> I want to write the grpc python multithread code for the client-server >> application, both client and server should us

Re: [grpc-io] Re: python support multi-thread

2018-10-26 Thread Vaibhav Bedi
Can you share some reference? ᐧ On Fri, Oct 26, 2018 at 11:51 PM Vaibhav Bedi wrote: > My problem is > I want to write the grpc python multithread code for the client-server > application, both client and server should use > threads in order to handle multi-requests at the same time. The client

Re: [grpc-io] Re: python support multi-thread

2018-10-26 Thread Vaibhav Bedi
My problem is I want to write the grpc python multithread code for the client-server application, both client and server should use threads in order to handle multi-requests at the same time. The client is simulating a gateway where it uploads data to the server. This data should be an array of obj

[grpc-io] Re: python support multi-thread

2018-10-26 Thread 'Carl Mastrangelo' via grpc.io
Yes it does. If you provide more information about what you want to do, we can give a better answer. On Thursday, October 25, 2018 at 9:11:49 AM UTC-7, rob.vai...@gmail.com wrote: > > hi > > I want to know Is grpc python support multi-thread? > -- You received this message because you are s

[grpc-io] Re: Scalability issues with Server-Sent-Events in grpc c# implementation

2018-10-26 Thread Arpit Baldeva
You should be looking to run the grpc server in the async mode. That'd make sure that there is not a thread per server streaming rpc (you control the threading model). On Sunday, October 21, 2018 at 4:48:24 AM UTC-7, Michael Martin wrote: > > Hello, > I choose grpc to replace a REST data interfa