← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 2313.e.5.f.10.b.3.g.1.a

Saga补偿不等于原子提交

理解等级:高级

Saga把长流程拆成本地事务,失败后通过业务补偿修正已完成步骤。中间状态可能可见,补偿本身也会失败;它不是把分布式流程包装成一个ACID事务,也不要求全部状态只能留在单次函数调用里。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《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.