gRPC|gRPC vs REST
gRPC | REST | |
---|---|---|
Full Name | Google Remote Procedure Call | REpresentational State Transfer |
Payload | Protobuf | JSON(typically) |
Unreadable Binary Data | Readable Data | |
HTTP | HTTP/2 | HTTP 1.1/HTTP/2 |
Performance | Faster | |
Type Safe | ||
Cross Language | Cross Language | |
Need setup a client | No need to setup a client | |
Any function | GET/PUT/DELETE/POST/.... |
利用HTTP/2具有双向连接能力。
【gRPC|gRPC vs REST】gRPC上搭建一个Nginx Proxy可以转换为REST Web Service。
推荐阅读
- 推荐系统论文进阶|CTR预估 论文精读(十一)--Deep Interest Evolution Network(DIEN)
- Lesson-3|Lesson-3 学习RESTFUL
- RESTful|RESTful 的起源及设计理念
- 论文笔记|【论文笔记】DIEN: Deep Interest Evolution Network for Click-Through Rate Prediction
- 深度学习|论文阅读(《Deep Interest Evolution Network for Click-Through Rate Prediction》)
- Node.js示例_CNode|Node.js示例_CNode RESTful API
- Clean architecture for the rest of us
- 利用 git-kit 实现支持 http 和 grpc 的微服务
- 使用OpenResty+Lua实现灰度测试(金丝雀)
- grpc 源码阅读之 balancer