← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 4954

远程数据副本有边界

理解等级:中级

将数据视为远程意味着不能控制其存储结构、访问者和可用性,也不能假定手中副本与别人一致。数据提供者负责本地完整性并记录读写来源;消费者应准备更新被拒绝、获取新副本和处理来源不可用。缓存可改善性能,但需要最新数据时仍可能回源;跨源更新还必须判断部分成功是否需要撤销。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 用超媒体思考与设计 · 查看原书依据

      When you treat data as remote, you make a few other important assumptions: 1) you can’t change the storage medium or schema, 2) you can’t control who can read or write information at that source, and 3) you’re on your own when that data becomes unavailable (either temporarily or permanently).

    参考来源

    - 位置:《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年原书语境整理。 - 原始内容:When you treat data as remote, you make a few other important assumptions: 1) you can’t change the storage medium or schema, 2) you can’t control who can read or write information at that source, and 3) you’re on your own when that data becomes unavailable (either temporarily or permanently).