Hi Stefan, Currently process pools are not supported. There is definitely interest in supporting it, but the c-core extension code breaks with calls to fork(), so implementing it would be a non-trivial task.
Ken On Thursday, July 28, 2016 at 9:32:45 PM UTC-7, [email protected] wrote: > > Hi, > > We are currently evaluating gRPC and the Python based implementation on > top of the c core seems to use Python threads from a thread pool for > executing the code that represents the remote method. > The code that would be exposed via gRPC is not threadsafe and is currently > being executed in a pre-fork model with one process per request. > > Thrift's Python library for example seems to support a model of using a > pool of worker processes: > https://git1-us-west.apache.org/repos/asf?p=thrift.git;a=blob;f=lib/py/src/server/TProcessPoolServer.py;h=fe6dc816278666d2f8642cbafbba761db611a781;hb=HEAD > > Does something like this exist for Python/gRPC or are there any plans to > support something like this in the future? > > Best regards, > Stefan > -- 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/f6bade4e-e19f-472a-980c-4172a536780c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
