← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 4545.c.2.a

后端资源通过配置接入

理解等级:中级

服务把所依赖数据库、缓存或其他网络服务看作可配置资源,而不因“同团队管理”就忽略故障和延迟。地址或句柄明确后,测试及不同部署较容易替换同类资源。可替换仍依赖真实契约兼容,配置改地址不意味着任意两种数据库语义都相同。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • It’s All About Dependability · 查看原书依据

      An service that’s able to swap out any resource at will with another one of the same kind — internally-managed or otherwise — just by changing a configuration value can be more easily deployed to different environments, can be more easily tested, and more easily maintained. V. Build, Release, Run Strictly separate build and run

    参考来源

    - 位置:《Cloud Native Go》第06章《It’s All About Dependability》(来源项目book-sources;源文件:extracted/Cloud Native Go (Matthew A. Titmus)/_epub-src/OEBPS/ch06.xhtml) - 结论依据:服务把所依赖数据库、缓存或其他网络服务看作可配置资源,而不因“同团队管理”就忽略故障和延迟。原文相应定义、示例或限制为此结论提供依据;补充纠错与版本边界在正文就近标明。 - 原始内容:An service that’s able to swap out any resource at will with another one of the same kind — internally-managed or otherwise — just by changing a configuration value can be more easily deployed to different environments, can be more easily tested, and more easily maintained. V. Build, Release, Run Strictly separate build and run