[grpc-io] Re: gRPC C++ async api doc and sample code

2019-10-17 Thread Debashish Deka
Assuming the server has only one service. And we want to process multi-client requests in parallel in a multi-core system. On Friday, October 18, 2019 at 12:22:05 PM UTC+5:30, Debashish Deka wrote: > > Thank you for the explanation. > I understood the logic of one thread waiting on the queue and

[grpc-io] Re: gRPC C++ async api doc and sample code

2019-10-17 Thread Debashish Deka
For example, the main thread should only pull requests from the queue and enqueue on to the queue. for example, // main_thread: cq.NEXT( ) ... pool.enqueue( // what to enqueue so that when one worker thread of my thread pool pop one requests it can decide what handler to execute ) On

[grpc-io] Re: gRPC C++ async api doc and sample code

2019-10-17 Thread Debashish Deka
Thank you for the explanation. I understood the logic of one thread waiting on the queue and submitting the tasks onto some container and the other thread processes those tasks one by one. I want a design where one thread should wait on the queue and push incoming requests to a thread pool. I h

[grpc-io] Re: How grpc-health-probe (gRPC health checking on Kubernetes) differentiates between liveness and readiness probes

2019-10-17 Thread aparoha via grpc.io
Hi Eric, Thanks for the reply. I am writing grpc server in scala. I have 2 classes (one for liveness and other for readiness) and both are implementing HealthGrpc.HealthImplBase of grpc-java. In both classes, I implemented override def check(request: HealthCheckRequest, responseObserver: Stream

Re: [grpc-io] gRPC fails when building from source

2019-10-17 Thread David T.
Hey thanks! I think I've figured it out. First I downgraded to gcc-7 as well as g++-7 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-7 --slave /usr/bin/gcov gcov /usr/bin/gcov-7 Then I set gcc-7 with highest priority sudo update-alte

Re: [grpc-io] gRPC fails when building from source

2019-10-17 Thread Thomas Mercier
Nothing, I think. It looks like gRPC just doesn't build with GCC 8 (which has added more checks/warnings that the gRPC build is treating as errors). Someone else filed a bug about this: https://github.com/grpc/grpc/issues/18689 Removing -Werror as Triose suggested, or adding -Wno-error=class-memac

[grpc-io] gRPC fails when building from source

2019-10-17 Thread David T.
I'm doing a project for school and we have to install gRPC and protocol buffer dependencies for c++. I have been following the build instructions here https://github.com/grpc/grpc/blob/master/BUILDING.md I am building on Ubuntu 19 and when I run make from the root grpc/ I get the below error.