kingluo
kingluo

Reputation: 1785

Does the grpc server use one new goroutine to process one method call?

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

Answers (1)

menghanl
menghanl

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

Related Questions