{"title":"Implementing Optimistic Concurrency Control for Persistence Middleware Using Row Version Verification","authors":"M. Laiho, F. Laux","doi":"10.1109/DBKDA.2010.25","DOIUrl":null,"url":null,"abstract":"Modern web-based applications are often built as multi-tier architecture using persistence middleware. Middleware technology providers recommend the use of Optimistic Concurrency Control (OCC) mechanism to avoid the risk of blocked resources. However, most vendors of relational database management systems implement only locking schemes for concurrency control. As consequence a kind of OCC has to be implemented at client or middleware side. A simple Row Version Verification (RVV) mechanism has been proposed to implement an OCC at client side. %The implementation of RVV depends on the underlying database management system and the specifics of the middleware. For performance reasons the middleware uses buffers (cache) of its own to avoid network traffic and possible disk I/O. This caching however complicates the use of RVV because the data in the middleware cache may be stale (outdated). We investigate various data access technologies, including the new Java Persistence API (JPA) and Microsoft's LINQ technologies for their ability to use the RVV programming discipline. The use of persistence middleware that tries to relieve the programmer from the low level transaction programming turns out to even complicate the situation in some cases. Programmed examples show how to use SQL data access patterns to solve the problem.","PeriodicalId":273177,"journal":{"name":"2010 Second International Conference on Advances in Databases, Knowledge, and Data Applications","volume":"89 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2010-04-11","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"8","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2010 Second International Conference on Advances in Databases, Knowledge, and Data Applications","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/DBKDA.2010.25","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 8
Abstract
Modern web-based applications are often built as multi-tier architecture using persistence middleware. Middleware technology providers recommend the use of Optimistic Concurrency Control (OCC) mechanism to avoid the risk of blocked resources. However, most vendors of relational database management systems implement only locking schemes for concurrency control. As consequence a kind of OCC has to be implemented at client or middleware side. A simple Row Version Verification (RVV) mechanism has been proposed to implement an OCC at client side. %The implementation of RVV depends on the underlying database management system and the specifics of the middleware. For performance reasons the middleware uses buffers (cache) of its own to avoid network traffic and possible disk I/O. This caching however complicates the use of RVV because the data in the middleware cache may be stale (outdated). We investigate various data access technologies, including the new Java Persistence API (JPA) and Microsoft's LINQ technologies for their ability to use the RVV programming discipline. The use of persistence middleware that tries to relieve the programmer from the low level transaction programming turns out to even complicate the situation in some cases. Programmed examples show how to use SQL data access patterns to solve the problem.
现代基于web的应用程序通常使用持久性中间件构建为多层体系结构。中间件技术提供者建议使用乐观并发控制(OCC)机制来避免资源阻塞的风险。然而,大多数关系数据库管理系统供应商只实现用于并发控制的锁定方案。因此,一种OCC必须在客户端或中间件端实现。提出了一种简单的行版本验证(RVV)机制来实现客户端的OCC。RVV的实现取决于底层数据库管理系统和中间件的具体情况。出于性能原因,中间件使用自己的缓冲区(缓存)来避免网络流量和可能的磁盘I/O。然而,这种缓存使RVV的使用变得复杂,因为中间件缓存中的数据可能是过时的。我们研究了各种数据访问技术,包括新的Java Persistence API (JPA)和Microsoft的LINQ技术,因为它们能够使用RVV编程原则。持久性中间件的使用试图将程序员从低级事务编程中解脱出来,结果在某些情况下甚至使情况复杂化。编程示例展示了如何使用SQL数据访问模式来解决这个问题。