gRPC 服务开发规范
proto 文件发布后即成为服务间契约,调用方通常不会与发布方同步升级。一旦删除 RPC 或复用已发布的字段编号,问题往往在数月后才显现:灰度发布中的新旧服务互相解析出错误数据,且解析过程不产生任何报错。REST 接口改错通常当场暴露,proto 的兼容性错误则全程静默,因此 proto 的变更纪律必须比 REST 严格得多。
9 min read
Loading…
Quote of the day · October 26 · 关于意义 · Rick and Morty
Nobody exists on purpose. Nobody belongs anywhere. Everybody's gonna die. Come watch TV?
Notes on Agent runtimes — design decisions laid open: why it is this way, what it costs, and when it stops being true.