15

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?

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
kingluo
  • 1,679
  • 1
  • 13
  • 31

1 Answers1

15

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

menghanl
  • 751
  • 6
  • 7