知识卡片
远程接口的隐藏成本
本地迭代器和远程迭代器可以有相同方法,但后者涉及分页、合并、副本协调、消息语义和并发访问。远程调用还需要序列化与往返通信。接口需要给调试、配置和观测留出适当入口。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 8. Introduction and Overview Clocks and Time · 查看原书依据
Hiding complexity behind an API might be dangerous. For example, if you have an iterator over the local dataset, you can reasonably predict what’s going on behind the scenes, even if the storage engine is unfamiliar. Understanding the process
参考来源
- 位置:《Database Internals》Chapter 8. Introduction and Overview(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch08.html#idm46104531106024,段 65)
- 结论依据:原文用迭代器例子解释隐藏复杂性,同时指出远程传输和序列化成本。
- 原始内容:Hiding complexity behind an API might be dangerous. For example, if you have an iterator over the local dataset, you can reasonably predict what’s going on behind the scenes, even if the storage engine is unfamiliar. Understanding the process