← 返回刚才阅读的位置

知识卡片

结构图卡 · 4355.a

内存网格移开同步数据库

理解等级:高级

空间架构让多个处理单元在内存中持有并复制应用数据,常规请求不必同步访问中央数据库;更新再由数据泵经持久队列异步写库。这样移开事务路径上的单库约束,处理单元可随负载增减。代价是内存复制、异步落库与恢复一致性都要另外处理。原书称其可接近无限扩展,这是设计主张,不能当作容量保证。

结构图:

flowchart LR
  R[请求] --> P1[处理单元A]
  R --> P2[处理单元B]
  P1 <-->|复制数据| P2
  P1 --> U[数据泵]
  P2 --> U
  U --> Q[持久消息队列]
  Q --> W[数据写入器]
  W --> D[数据库]
这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Space-Based Architecture Style · 查看原书依据

      Application data is kept in-memory and replicated among all the active processing units. When a processing unit updates data, it asynchronously sends that data to the database through a data pump, usually via messaging with persistent queues.

    参考来源

    - 位置:《Fundamentals of Software Architecture》原书第16章《Space-Based Architecture Style》(阅读计划第19项,单元02;源文件:`OEBPS/ch16.html`) - 结论依据:原书定义处理单元内存复制与经数据泵异步入库的空间架构拓扑。 - 原始内容:Application data is kept in-memory and replicated among all the active processing units. When a processing unit updates data, it asynchronously sends that data to the database through a data pump, usually via messaging with persistent queues.