分布式事务:剖析噩梦
Distributed Transactions: Dissecting the Nightmare
摘要:
许多分布式存储系统都是事务性的,并且大量的工作都致力于优化其性能,特别是只读事务的性能,这被认为是实践中最常见的。然而,到目前为止所获得的结果是相当令人失望的,一些设计决策似乎是人为的。本文通过证明事务存储系统的内在局限性来解释这种情况,即使是那些不需要确保强一致性而只需要因果关系的系统。我们首先考虑一般的存储系统,其中有些事务是只读的,有些还涉及写操作。我们表明,即使是只读事务也不能“快”:它们的操作不能在寻找对象的客户端和存储对象的服务器之间的一次往返消息交换中执行。然后,我们考虑所有事务都是只读的系统(如今天有时实现的),即,更新作为事务之外的单独操作来执行。在这种情况下,只读事务确实可以“快速”,但我们证明它们需要“可见”。它们会导致服务器上的固有更新,这反过来又会影响其整体性能。
英文摘要:
Many distributed storage systems are transactional and a lot of work has been devoted to optimizing their performance, especially the performance of read-only transactions that are considered the most frequent in practice. Yet, the results obtained so far are rather disappointing, and some of the design decisions seem contrived. This paper contributes to explaining this state of affairs by proving intrinsic limitations of transactional storage systems, even those that need not ensure strong consistency but only causality. We first consider general storage systems where some transactions are read-only and some also involve write operations. We show that even read-only transactions cannot be "fast": their operations cannot be executed within one round-trip message exchange between a client seeking an object and the server storing it. We then consider systems (as sometimes implemented today) where all transactions are read-only, i.e., updates are performed as individual operations outside transactions. In this case, read-only transactions can indeed be "fast", but we prove that they need to be "visible". They induce inherent updates on the servers, which in turn impact their overall performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。