DevilKing's blog

冷灯看剑,剑上几分功名?炉香无需计苍生,纵一穿烟逝,万丈云埋,孤阳还照古陵

0%

gRpc With JSON

原文链接

不想使用protobuf,使用gRPC,可以采用gRPC+JSON的方式

本文中采用Gson的方式

grpc vs thrift vs pyrc

rpc框架逃离不出,配置文件的束缚?那在形成python lib的时候,是否要总是使用最新的配置文件去生成?感觉也是可行的,按照版本来行,thrift部分,可以通过不同的版本,逐次地开放更多的功能这样子?

My preferences are:

  • I would personally perfer to use RPyC if python is the only language I am going to use.
  • I would prefer to use gPRC if I needed robustness, reliability, and scalability from my services.
  • The best thing about Thrift is that it supports so many languages. If that’s what you’re targetting, go for Thirft.

grpc部分的配置文件,需要重新生成这样子?