Apache ShardingSphere 5.0.0-alpha Document2 Distributed Transaction 3.2.1 Background Database transactions should satisfy the features of ACID (atomicity, consistency, isolation and dura‐ bility). • Atomicity guarantees that each transaction database has provided perfect native ACID support, it can become an obstacle to the system performance under distributed situations. How to make databases satisfy ACID features un‐ der distributed situations transactions based on XA standard just as local transactions. XA standard can strictly guarantee ACID features of transactions. That guarantee can be a double‐edged sword. It is more proper in the implementation0 码力 | 311 页 | 2.09 MB | 1 年前3
Apache ShardingSphere 中文文档 5.0.0-alphaOFFSET ? 3.1. 数据分片 53 Apache ShardingSphere document, v5.0.0-beta 3.2 分布式事务 3.2.1 背景 数据库事务需要满足 ACID(原子性、一致性、隔离性、持久性)四个特性。 • 原子性(Atomicity)指事务作为整体来执行,要么全部执行,要么全不执行。 • 一致性(Consistency)指事务应确保数据从一个一致的状态转变为另一个一致的状态。 应用场 景要求对多个服务的访问及其相对应的多个数据库资源能纳入到同一个事务当中,分布式事务应运而生。 关系型数据库虽然对本地事务提供了完美的 ACID 原生支持。但在分布式的场景下,它却成为系统性能 的桎梏。如何让数据库在分布式场景下满足 ACID 的特性或找寻相应的替代方案,是分布式事务的重点 工作。 本地事务 在不开启任何分布式事务管理器的前提下,让每个数据节点各自管理自己的事务。它们之间没有协调以 协议。 基于 XA 协议实现的分布式事务对业务侵入很小。它最大的优势就是对使用方透明,用户可以像使用本地 事务一样使用基于 XA 协议的分布式事务。XA 协议能够严格保障事务 ACID 特性。 严格保障事务 ACID 特性是一把双刃剑。事务执行在过程中需要将所需资源全部锁定,它更加适用于执 行时间确定的短事务。对于长事务来说,整个事务进行期间对数据的独占,将导致对热点数据依赖的业 务系统并0 码力 | 301 页 | 3.44 MB | 1 年前3
Apache ShardingSphere 5.0.0 Document3 Distributed Transaction 4.3.1 Background Database transactions should satisfy the features of ACID (atomicity, consistency, isolation and dura‐ bility). • Atomicity guarantees that each transaction database has provided perfect native ACID support, it can become an obstacle to the system performance under distributed situations. How to make databases satisfy ACID features un‐ der distributed situations transactions based on XA standard just as local transactions. XA standard can strictly guarantee ACID features of transactions. That guarantee can be a double‐edged sword. It is more proper in the implementation0 码力 | 403 页 | 3.15 MB | 1 年前3
Apache ShardingSphere 中文文档 5.0.0LIMIT 分页,无需子查询: SELECT * FROM t_order o ORDER BY id LIMIT ? OFFSET ? 4.3 分布式事务 4.3.1 背景 数据库事务需要满足 ACID(原子性、一致性、隔离性、持久性)四个特性。 • 原子性(Atomicity)指事务作为整体来执行,要么全部执行,要么全不执行; • 一致性(Consistency)指事务应确保数据从一个一致的状态转变为另一个一致的状态; 应用场 景要求对多个服务的访问及其相对应的多个数据库资源能纳入到同一个事务当中,分布式事务应运而生。 关系型数据库虽然对本地事务提供了完美的 ACID 原生支持。但在分布式的场景下,它却成为系统性能的 桎梏。如何让数据库在分布式场景下满足 ACID 的特性或找寻相应的替代方案,是分布式事务的重点工 作。 本地事务 在不开启任何分布式事务管理器的前提下,让每个数据节点各自管理自己的事务。它们之间没有协调以 协议的分布式事务。XA 协议能够严格保障事务 ACID 特性。 严格保障事务 ACID 特性是一把双刃剑。事务执行在过程中需要将所需资源全部锁定,它更加适用于执行 时间确定的短事务。对于长事务来说,整个事务进行期间对数据的独占,将导致对热点数据依赖的业务系 统并发性能衰退明显。因此,在高并发的性能至上场景中,基于 XA 协议的分布式事务并不是最佳选择。 柔性事务 如果将实现了 ACID 的事务要素的事务称为刚性事务的话,那么基于0 码力 | 385 页 | 4.26 MB | 1 年前3
Apache ShardingSphere 5.1.1 Document4 Distributed Transaction 4.4.1 Background Database transactions should satisfy the features of ACID (atomicity, consistency, isolation and dura‐ bility). • Atomicity guarantees that each transaction database has provided perfect native ACID support, it can become an obstacle to the system performance under distributed situations. How to make databases satisfy ACID features un‐ der distributed situations transactions based on XA standard just as local transactions. XA standard can strictly guarantee ACID features of transactions. That guarantee can be a double‐edged sword. It is more proper in the implementation0 码力 | 458 页 | 3.43 MB | 1 年前3
Apache ShardingSphere 5.2.0 Document2 Distributed Transaction 3.2.1 Background Database transactions should satisfy the features of ACID (atomicity, consistency, isolation and dura‐ bility). • Atomicity: transactions are executed as database has provided perfect native ACID support, it can become an obstacle to the system performance under distributed situations. How to make databases satisfy ACID features un‐ der distributed situations impact on performance in concurrent sce‐ narios. BASE Transaction If a transaction that implements ACID is called a rigid transaction, then a transaction based on a BASE transaction element is called a0 码力 | 483 页 | 4.27 MB | 1 年前3
Apache ShardingSphere 中文文档 5.1.1LIMIT 分页,无需子查询: SELECT * FROM t_order o ORDER BY id LIMIT ? OFFSET ? 4.4 分布式事务 4.4.1 背景 数据库事务需要满足 ACID(原子性、一致性、隔离性、持久性)四个特性。 • 原子性(Atomicity)指事务作为整体来执行,要么全部执行,要么全不执行; • 一致性(Consistency)指事务应确保数据从一个一致的状态转变为另一个一致的状态; 4. 分布式事务 42 Apache ShardingSphere document, v5.1.1 关系型数据库虽然对本地事务提供了完美的 ACID 原生支持。但在分布式的场景下,它却成为系统性能的 桎梏。如何让数据库在分布式场景下满足 ACID 的特性或找寻相应的替代方案,是分布式事务的重点工 作。 本地事务 在不开启任何分布式事务管理器的前提下,让每个数据节点各自管理自己的事务。它们之间没有协调以 协议的分布式事务。XA 协议能够严格保障事务 ACID 特性。 严格保障事务 ACID 特性是一把双刃剑。事务执行在过程中需要将所需资源全部锁定,它更加适用于执行 时间确定的短事务。对于长事务来说,整个事务进行期间对数据的独占,将导致对热点数据依赖的业务系 统并发性能衰退明显。因此,在高并发的性能至上场景中,基于 XA 协议的分布式事务并不是最佳选择。 柔性事务 如果将实现了 ACID 的事务要素的事务称为刚性事务的话,那么基于0 码力 | 409 页 | 4.47 MB | 1 年前3
Apache ShardingSphere 中文文档 5.1.0LIMIT 分页,无需子查询: SELECT * FROM t_order o ORDER BY id LIMIT ? OFFSET ? 4.4 分布式事务 4.4.1 背景 数据库事务需要满足 ACID(原子性、一致性、隔离性、持久性)四个特性。 • 原子性(Atomicity)指事务作为整体来执行,要么全部执行,要么全不执行; • 一致性(Consistency)指事务应确保数据从一个一致的状态转变为另一个一致的状态; 4. 分布式事务 42 Apache ShardingSphere document, v5.1.0 关系型数据库虽然对本地事务提供了完美的 ACID 原生支持。但在分布式的场景下,它却成为系统性能的 桎梏。如何让数据库在分布式场景下满足 ACID 的特性或找寻相应的替代方案,是分布式事务的重点工 作。 本地事务 在不开启任何分布式事务管理器的前提下,让每个数据节点各自管理自己的事务。它们之间没有协调以 协议的分布式事务。XA 协议能够严格保障事务 ACID 特性。 严格保障事务 ACID 特性是一把双刃剑。事务执行在过程中需要将所需资源全部锁定,它更加适用于执行 时间确定的短事务。对于长事务来说,整个事务进行期间对数据的独占,将导致对热点数据依赖的业务系 统并发性能衰退明显。因此,在高并发的性能至上场景中,基于 XA 协议的分布式事务并不是最佳选择。 柔性事务 如果将实现了 ACID 的事务要素的事务称为刚性事务的话,那么基于0 码力 | 406 页 | 4.40 MB | 1 年前3
Apache ShardingSphere 中文文档 5.1.2LIMIT 分页,无需子查询: SELECT * FROM t_order o ORDER BY id LIMIT ? OFFSET ? 4.4 分布式事务 4.4.1 背景 数据库事务需要满足 ACID(原子性、一致性、隔离性、持久性)四个特性。 • 原子性(Atomicity)指事务作为整体来执行,要么全部执行,要么全不执行; • 一致性(Consistency)指事务应确保数据从一个一致的状态转变为另一个一致的状态; 4. 分布式事务 42 Apache ShardingSphere document, v5.1.2 关系型数据库虽然对本地事务提供了完美的 ACID 原生支持。但在分布式的场景下,它却成为系统性能的 桎梏。如何让数据库在分布式场景下满足 ACID 的特性或找寻相应的替代方案,是分布式事务的重点工 作。 本地事务 在不开启任何分布式事务管理器的前提下,让每个数据节点各自管理自己的事务。它们之间没有协调以 协议的分布式事务。XA 协议能够严格保障事务 ACID 特性。 严格保障事务 ACID 特性是一把双刃剑。事务执行在过程中需要将所需资源全部锁定,它更加适用于执行 时间确定的短事务。对于长事务来说,整个事务进行期间对数据的独占,将导致对热点数据依赖的业务系 统并发性能衰退明显。因此,在高并发的性能至上场景中,基于 XA 协议的分布式事务并不是最佳选择。 柔性事务 如果将实现了 ACID 的事务要素的事务称为刚性事务的话,那么基于0 码力 | 446 页 | 4.67 MB | 1 年前3
Apache ShardingSphere 5.2.1 Document2 Distributed Transaction 3.2.1 Background Database transactions should satisfy the features of ACID (atomicity, consistency, isolation and dura‐ bility). • Atomicity: transactions are executed as database has provided perfect native ACID support, it can become an obstacle to the system performance under distributed situations. How to make databases satisfy ACID features un‐ der distributed situations impact on performance in concurrent sce‐ narios. BASE Transaction If a transaction that implements ACID is called a rigid transaction, then a transaction based on a BASE transaction element is called a0 码力 | 523 页 | 4.51 MB | 1 年前3
共 17 条
- 1
- 2













