知识卡片
Saga补偿不等于原子提交
Saga把长流程拆成本地事务,失败后通过业务补偿修正已完成步骤。中间状态可能可见,补偿本身也会失败;它不是把分布式流程包装成一个ACID事务,也不要求全部状态只能留在单次函数调用里。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Choosing Platform and Technologies · 查看原书依据
Saga pattern, which breaks up a long-running transaction into a series of smaller, compensable transactions. Choosing the right data store The choice of data store is critical in a serverless architecture.
参考来源
- 位置:《Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…》第12章《Choosing Platform and Technologies》(来源项目book-sources;源文件:extracted/Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…/_epub-src/OPS/ch12.xhtml)
- 结论依据:原文的机制或对比支持以下核心判断:Saga把长流程拆成本地事务,失败后通过业务补偿修正已完成步骤。 本卡将相邻说明中的适用限制保留为解释。
- 原始内容:Saga pattern, which breaks up a long-running transaction into a series of smaller, compensable transactions. Choosing the right data store The choice of data store is critical in a serverless architecture.