grpc为什么使用http/2而不直接使用tcp?

追求性能是吗?为啥不直接用tcp?
还是说本身想作为 web server?

阅读 2.3k
1 个回答

Google wanted to write mobile SDKs once and generate code for other programming languages. It does offer a lot of its products SDKs via gRPC.

Since it targets mobile/ desktop there was no need to change the communication layer that's build over http.

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题