Reputation: 1785
How does golang grpc implementation handle the server concurrency?
One goroutine per method call? Or sort of goroutine pool?
Does it depend on the concurrency model of net/http2?
Upvotes: 16
Views: 8716
Reputation: 771
One goroutine per method call. There's current no goroutine pool for service handlers.
It doesn't depend on net/http2 concurrency model.
https://github.com/grpc/grpc-go/blob/master/Documentation/concurrency.md#servers
Upvotes: 16