thank you very much.

在 2016年6月9日星期四 UTC+8上午1:24:28,Guo Jing写道:
>
> The simplest way is to use thread pool.
>
> from concurrent.futures import ThreadPoolExecutor
>
> pool = ThreadPoolExecutor(max_workers=GRPC_POOL_MAX_WORKER)
>
> server = server_pb2.beta_create_SomeService_server(
>             Impl(), pool=pool, pool_size=GRPC_POOL_SIZE,
>             default_timeout=5, maximum_timeout=30)
>
> gRPC Python is based on gRPC C Core. You can't change much. The best way I 
> think is to use multi process, I wrote a simple tool called grma. Hope this 
> may help.
>
> https://github.com/qiajigou/grma
>
> On Tuesday, June 7, 2016 at 10:35:06 AM UTC+8, mouse wrote:
>>
>>
>> I make a backend service by using grpc, and the programing language is 
>> python.
>> how to choice network module, blocking or non-blocking. 
>> usually, we can set thread num to get more qps. how can i do something 
>> like this with grpc + python.
>>
>>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/b032e1a6-23b2-46a5-9355-b75fa8ef2be7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to