arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.16490cs.DB
收藏

可扩展的事务管理框架用于一致的文档导向NoSQL数据库

A Scalable Transaction Management Framework for Consistent Document-Oriented NoSQL Databases

Bahri University(巴里大学);Georgia State University(佐治亚州立大学);Delaware State University(特拉华州立大学)

Adam A. E. Alflahi, Mohammed A. Y. Mohammed, Abdallah Alsammani

AI总结:

本文提出了一种四阶段事务管理框架,通过优化锁策略和冲突检测,提高了文档导向NoSQL数据库在一致性与性能之间的平衡。

摘要:

NoSQL数据库因其可扩展性和模式灵活性而被广泛应用于现代应用程序,但它们通常依赖于最终一致性模型,这限制了可靠事务处理的能力。本研究提出了一种针对文档导向NoSQL数据库的四阶段事务管理框架,以MongoDB为参考平台。该框架结合了事务生命周期管理、操作分类、预执行冲突检测以及具有超时机制的自适应锁策略。形式正确性分析显示,所提出的方法在定义条件下保证了冲突可串行性。使用Yahoo Cloud Serving Benchmark(YCSB)工作负载A、B和F,通过并发级别从1到100客户端的实验评估,显示事务回滚率从8.3%降低到4.7%,消除了观察到的死锁,并且延迟方差减少了34.2%。在高并发下,吞吐量提高了6.3%至18.4%,特别是在读-修改-写工作负载中。在最多9个节点的集群上的分布式实验确认了可扩展性,实现了比基线系统高15.2%的吞吐量和降低53%的回滚率。与MongoDB原生事务、CockroachDB和TiDB的比较表明,所提出的框架在一致性保证和性能开销之间取得了良好的平衡。敏感性分析确定了最佳参数设置,包括锁超时100毫秒、初始回退10毫秒和最大回退500毫秒。这些结果表明,精心设计的一致性机制可以在不损害可扩展性的情况下显著提高NoSQL系统中的数据完整性。

英文摘要:

NoSQL databases are widely used in modern applications due to their scalability and schema flexibility, yet they often rely on eventual consistency models that limit reliable transaction processing. This study proposes a four-stage transaction management framework for document-oriented NoSQL databases, with MongoDB as the reference platform. The framework combines transaction lifecycle management, operation classification, pre-execution conflict detection, and an adaptive locking strategy with timeout-based deadlock prevention. Formal correctness analysis shows that the proposed approach guarantees conflict serializability under defined conditions. An experimental evaluation using the Yahoo Cloud Serving Benchmark (YCSB) workloads A, B, and F, with concurrency levels ranging from 1 to 100 clients, demonstrates a reduction in transaction abort rates from 8.3% to 4.7%, the elimination of observed deadlocks, and a 34.2% decrease in latency variance. Throughput improvements ranging from 6.3% to 18.4% are observed under high concurrency, particularly for read-modify-write workloads. Distributed experiments on clusters of up to 9 nodes confirm scalability, achieving 15.2% higher throughput and 53% lower abort rates than baseline systems. Comparisons with MongoDB's native transactions, CockroachDB, and TiDB indicate that the proposed framework strikes a good balance between consistency guarantees and performance overhead. Sensitivity analysis identifies optimal parameter settings, including a lock timeout of 100 ms, an initial backoff of 10 ms, and a maximum backoff of 500 ms. These results show that carefully designed consistency mechanisms can significantly improve data integrity in NoSQL systems without undermining scalability.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑