知识卡片
数据是动作证据
数据可视为动作留下的证据:创建和更新改变属性,多次动作形成可查询的历史。对HTTP服务,完整请求和响应的元数据及消息体是直接证据;HAR、message/http或application/http可记录它们,再转成便于查询的表示。存储优化可以变化,但不应损害证据质量。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 用超媒体思考与设计 · 查看原书依据
The best storage format is the HTTP messages (both metadata and body) themselves. The ability to inspect and possibly replay HTTP exchanges makes for a powerful storage platform. There is even a document format designed to properly capture HTTP messages—the HTTP Archive (HAR) format.
参考来源
- 位置:《RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)》第02章《用超媒体思考与设计》(来源项目 book-sources;源文件:extracted/RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)/_epub-src/OEBPS/ch02.xhtml;小节:分布式数据)
- 结论依据:原文以数据可视为动作留下的证据:创建和更新改变属性,多次动作形成可查询的历史的机制或场景为依据;同小节余文补充本卡所列条件,按2022年原书语境整理。
- 原始内容:The best storage format is the HTTP messages (both metadata and body) themselves. The ability to inspect and possibly replay HTTP exchanges makes for a powerful storage platform. There is even a document format designed to properly capture HTTP messages—the HTTP Archive (HAR) format.