Hi all,
To learn about gRPC in C++, I am creating a simple service in which the client would send two numbers, and a math operator as a string. The server would do the math operation and send back the result. It would be a single client opening a bidirectional stream and sending a million such requests.
When I create the server using Go, the million requests-responses take around 3 seconds. The C++ sync server takes around 20 seconds, and the C++ async server takes around 15 seconds for the same.
I was expecting the C++ server to be faster. I don't know if I'm doing anything wrong in C++. I have put up my code at
https://github.com/jeet-parekh/grpc-demo. I would appreciate any suggestions for improving the performance of the C++ server.
Thanks!