了解Azure Cosmos DB与TLA +中的不一致性
Understanding Inconsistency in Azure Cosmos DB with TLA+
摘要:
除了分布式系统实现的正确性之外,准确地理解用户应该期望从该系统中看到什么也同样重要。即使系统本身按设计工作,对其用户可见语义的理解不足也会导致其依赖性中的错误。通过将正式规范的工作重点放在精确定义Microsoft Azure Cosmos DB服务的预期用户面向行为上,我们能够编写一个正式的数据库规范,该规范比Cosmos DB的任何其他规范都要小得多,在概念上更简单,同时比现有的更详细的规范代表更广泛的有效用户可观察行为。我们记录的许多其他行为以前在Cosmos DB开发团队之外都很难理解,甚至是非正式的,导致依赖它的Microsoft产品中的数据一致性错误。使用这个模型,我们能够在Cosmos DB的公开文档中提出两个关键问题,这些问题已经得到解决。我们还能够为另一个依赖于Cosmos DB的Azure服务中之前的高影响停机提供基本解决方案。
英文摘要:
Beyond implementation correctness of a distributed system, it is equally important to understand exactly what users should expect to see from that system. Even if the system itself works as designed, insufficient understanding of its user-visible semantics can cause bugs in its dependencies. By focusing a formal specification effort on precisely defining the expected user-facing behaviors of the Azure Cosmos DB service at Microsoft, we were able to write a formal specification of the database that was significantly smaller and conceptually simpler than any other specification of Cosmos DB, while representing a wider range of valid user-observable behaviors than existing more detailed specifications. Many of the additional behaviors we documented were previously poorly understood outside of the Cosmos DB development team, even informally, leading to data consistency errors in Microsoft products that depend on it. Using this model, we were able to raise two key issues in Cosmos DB's public-facing documentation, which have since been addressed. We were also able to offer a fundamental solution to a previous high-impact outage within another Azure service that depends on Cosmos DB.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。