← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 2851.s

ACID保护一个事务单元

理解等级:中级

原子性让事务内更新全部提交或全部回滚;一致性要求满足数据库完整性约束;隔离控制并发事务互相观察和干扰的程度;持久性使成功提交的数据在后续故障后仍被保存。它们约束的是事务边界,不是函数边界。同一服务内可使用ACID,跨服务独立提交却不会自动组成一个业务整体的ACID。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 4 处

    • 数据所有权与分布式事务 · 查看原书依据

      Atomicity means a transaction must either commit or roll back all of its updates in a single unit of work, regardless of the number of updates made during that transaction. In other words, all updates are treated as a collective whole, so all changes either get committed or get rolled back as one unit.

    • 数据所有权与分布式事务 · 查看原书依据

      Consistency means that during the course of a transaction, the database would never be left in an inconsistent state or violate any of the integrity constraints specified in the database.

    • 数据所有权与分布式事务 · 查看原书依据

      Isolation refers to the degree to which individual transactions interact with each other. Isolation protects uncommitted transaction data from being visible to other transactions during the course of the business request.

    • 数据所有权与分布式事务 · 查看原书依据

      Durability means that once a successful response from a transaction commit occurs, it is guaranteed that all data updates are permanent, regardless of further system failures.

    参考来源

    - 位置:《Software Architecture: The Hard Parts》第09章《数据所有权与分布式事务》(来源项目:book-sources;源文件:extracted/Software Architecture The Hard Parts Modern Trade-Off Analyses for Distributed Architectures (Neal Ford, Mark Richards, Pramod Sadalage etc.)/_epub-src/OEBPS/ch09.xhtml) - 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。 - 原始内容:Atomicity means a transaction must either commit or roll back all of its updates in a single unit of work, regardless of the number of updates made during that transaction. In other words, all updates are treated as a collective whole, so all changes either get committed or get rolled back as one unit. - 补充原文依据:Consistency means that during the course of a transaction, the database would never be left in an inconsistent state or violate any of the integrity constraints specified in the database. - 补充原文依据:Isolation refers to the degree to which individual transactions interact with each other. Isolation protects uncommitted transaction data from being visible to other transactions during the course of the business request. - 补充原文依据:Durability means that once a successful response from a transaction commit occurs, it is guaranteed that all data updates are permanent, regardless of further system failures.