[grpc-io] Re: grpc c++: how to create async callback client

2021-09-22 Thread 'AJ Heller' via grpc.io
You should not need to manage your own threads for basic callback usage, that’s one of the callback API’s design goals ( https://github.com/grpc/proposal/blob/master/L67-cpp-callback-api.md#proposal ). Take a look at the route_guide example here: https://github.com/grpc/grpc/blob/v1.41.x/exam

[grpc-io] Re: grpc c++: how to create async callback client

2021-09-13 Thread 'yas...@google.com' via grpc.io
Hi, If using the callback API, you wouldn't need to create a separate thread for each RPC. The callbacks in the reactor would be automatically invoked by the threads managed by the gRPC library. That being said, if the reactor is going to be blocking for a substantial amount of time, you would