知识卡片
共享数据库削弱事件隔离
单一共享数据库让各事件处理器直接查询库存、配送选项等数据,避免为取数同步调用其他处理器;异步消息带来的处理器独立扩容,却会在数据库处重新汇合。数据库停机牵连全部处理器,高并发读写集中,表结构变更也须跨处理器协调。因此消息链路松耦合不等于数据层独立;原书把共享库视为单一架构量子。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Event-Driven Architecture Style · 查看原书依据
if all the event processors are simultaneously querying and writing to the same database, the database must scale to meet these demands.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第15章《Event-Driven Architecture Style》(阅读计划第18项,单元16;源文件:`OEBPS/ch15.html`)
- 结论依据:原书说明共享库避免处理器间同步取数,并列举故障、扩容、变更协调及架构量子代价。
- 原始内容:if all the event processors are simultaneously querying and writing to the same database, the database must scale to meet these demands.