知识卡片
共享数据库宜由核心隔离
典型单体微内核使用共享数据库时,插件不直接连该库,而由核心取出所需数据并传给插件。这样数据库结构改变通常只影响核心,插件仍依赖既定契约;插件也可持有仅自己使用的规则库或嵌入式存储。这里的“宜”来自原书常见做法,不是所有实现的强制规则。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Microkernel Architecture Style · 查看原书依据
Making a database change should only affect the core system, not the plug-in components.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第13章《Microkernel Architecture Style》(阅读计划第16项;源文件:`OEBPS/ch13.html`)
- 结论依据:原文描述核心管理共享数据库以解耦插件,同时允许插件自有存储。
- 原始内容:Making a database change should only affect the core system, not the plug-in components.