← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 4545.g.8.d.4

核心接口独立于网络协议

理解等级:中级

把Put、Get、Delete作为可独立调用的核心能力,网络处理器只负责解析请求和转换结果,便于单独测试及以后替换传输方式。Get通过存在标记区分空值和缺键,并用稳定的错误值供上层识别。原稿中Put与Get的错误名称有残留笔误,应按真实方法职责理解。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Building a Cloud Native Service · 查看原书依据

      Partitioning the functionality in this way will make it easier to test and easier to update in future iterations. Our Super Simple API The first thing that we need to do is to create our map. The heart of our key-value store. var store = make(map[string]string) Isn’t it a beauty? So simple. Don’t worry, we’ll

    参考来源

    - 位置:《Cloud Native Go》第05章《Building a Cloud Native Service》(来源项目book-sources;源文件:extracted/Cloud Native Go (Matthew A. Titmus)/_epub-src/OEBPS/ch05.xhtml) - 结论依据:把Put、Get、Delete作为可独立调用的核心能力,网络处理器只负责解析请求和转换结果,便于单独测试及以后替换传输方式。原文相应定义、示例或限制为此结论提供依据;补充纠错与版本边界在正文就近标明。 - 原始内容:Partitioning the functionality in this way will make it easier to test and easier to update in future iterations. Our Super Simple API The first thing that we need to do is to create our map. The heart of our key-value store. var store = make(map[string]string) Isn’t it a beauty? So simple. Don’t worry, we’ll