知识卡片
事务把恢复复杂度下沉
事务把一组更新作为提交单元,提供原子性、状态约束、隔离和持久性,把许多交错执行与故障处理交给存储系统。应用于是能集中表达业务,而不必每次手写恢复。但这些保证有明确资源和隔离级别边界,数据库事务不能自动撤回真实世界已发货或其他不参与事务的副作用。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 保持状态一致 · 查看原书依据
Transactions provide four guarantees when multiple operations are performed at the same time: Atomic: All side effects produced by the operations occur or none at all. Consistency: Data storage goes only from one consistent state to another. Isolation: The outcomes of operations from two interleaved transactions are as if two transactions happen consecutively. Durability: When committed, the transaction stays committed.
参考来源
- 位置:《Software Architecture and Decision-Making》第07章《保持状态一致》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch07.xhtml)
- 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。
- 原始内容:Transactions provide four guarantees when multiple operations are performed at the same time: Atomic: All side effects produced by the operations occur or none at all. Consistency: Data storage goes only from one consistent state to another. Isolation: The outcomes of operations from two interleaved transactions are as if two transactions happen consecutively. Durability: When committed, the transaction stays committed.