--
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 grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/6628ec23-6b52-426a-b8ac-222e845852a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
With the current API, you can use an async server to achieve this. Otherwise you may want to hack the default thread pool implementation.
On Sun, Nov 29, 2015 at 2:35 AM, Vivek M <vive...@gmail.com> wrote:
Hi,
I am working on implementing a gRPC C++ server. I have observed whenever there is any gRPC request (streaming or unary), there seems to be a thread created in the stack. And if there are multiple streaming requests, there will be as much threads created and will be alive till streaming is ON.
Now if there are requests coming from different clients for SAME data stream then instead of having multiple copies of data floating around in each of these gRPC threads, I am rather planning to write the data into multiple writer objects (which is unique for each streamig session). And I am planning to do the writes in a different thread which is I/O bound and gets the data from various sources.
I would like to know is there a way we can return the gRPC thread back to the thread pool, but still keep the streaming session live? In the above case, the threads created by the stack will be of no use and is just required to keep the streaming session live and it kinds of eats into system resoruces..
Thanks,
Vivek
--
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 grpc-io+u...@googlegroups.com.
Currently you'd need to define two services: one for the sync calls, the other for async calls. We'd like to have a way to mix sync and async methods within one service, but haven't gotten the API design right just yet.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/1584bd49-8438-4793-bd5c-7d216f509b4a%40googlegroups.com.
There's no ETA currently. It's a gap we knew was there, but you're the first user to have noticed. Opening up an issue would be great, but I don't see this getting resolved this year.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/e75c85a5-a378-4fb3-898d-5c880387ef13%40googlegroups.com.