知识卡片
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.