Surely a silly question. I don't get the differences between sync and async server.
In gRPC example on github
The distinction in async and sync isn't obvious.
According to this question and with my test sync gRPC server can hanndle parallele request.
And in the asynchronous example the server.Run();
is blocking.
So What's the difference between both ?
I found the answer to my question here
In short,
The async model give the application code full control over threading. Sync can handle multiple requests in parallel, yes, but they are serviced from a gRPC thread pool. If you want finer control over threading, then async is the better model to use
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With