Technology Radar
Published : Oct 26, 2022
NOT ON THE CURRENT EDITION
This blip is not on the current edition of the Radar. If it was on one of the last few editions, it is likely that it is still relevant. If the blip is older, it might no longer be relevant and our assessment might be different today. Unfortunately, we simply don't have the bandwidth to continuously review blips from previous editions of the Radar.
Understand more
Oct 2022
Assess
Connect 是一系列用于构建与浏览器和 gRPC 兼容的 HTTP API 的库。 与 gRPC 类似,您编写协议缓冲区的架构并实现其应用程序逻辑,然后 Connect 生成代码来处理编组、路由、压缩和内容类型协商。 但是,Connect 尝试以多种方式去改进 gRPC。 包括在没有翻译代理的情况下对 gRPC-Web 的原生支持; 与第三方路由器或中间件的互操作性,因为 connect-go 构建在 net/http 之上(与 grpc-go 不同); 以及完全生成的类型安全的,具有手工代码的人体工程学的客户端。 我们大多更喜欢 REST,而不喜欢使用 RPC 方法去构建 API。 也就是说,Connect 似乎解决了我们对 RPC 的一些担忧,我们鼓励您对其进行尝试。