type
status
date
slug
summary
tags
category
icon
password
URL
文章来源说明
🤔 REST API
REpresentation State Transfer
The state is not stored in the client-side
GET/POST/PUT
GET一般设置为缓存
![notion image](https://prod-files-secure.s3.us-west-2.amazonaws.com/e6f58431-8482-4308-9346-6ee9e41f4fb2/7f34bf4e-e472-4cab-a6af-4e136437ab6d/Untitled.png)
waste the bandwidth
🤔 GraphQL
no need API doc
similar to database query
![notion image](https://prod-files-secure.s3.us-west-2.amazonaws.com/e6f58431-8482-4308-9346-6ee9e41f4fb2/c50276f0-cd31-4eba-852c-901f3ff924c9/Untitled.png)
![notion image](https://prod-files-secure.s3.us-west-2.amazonaws.com/e6f58431-8482-4308-9346-6ee9e41f4fb2/f9065104-b15b-4ad7-9a81-3e795b91a2b5/Untitled.png)
🤔 RPC
different service on diff server
server provide the functions
gRPC
proto buffer → lower cost
more common in server 2 server communicate
tRPC
tRPC is only a library
- 作者:NotionNext
- 链接:https://blog.battleboy.top/article/eeb095cd-f868-4cbb-8858-ff8145c3fa11
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。