华东师范大学学报(自然科学版) ›› 2021, Vol. 2021 ›› Issue (5): 60-73.doi: 10.3969/j.issn.1000-5641.2021.05.006

• 系统关键技术 • 上一篇    下一篇

面向区块链的数据管理中间件

邓思佳, 佟兴, 唐海波, 张召*(), 金澈清   

  1. 华东师范大学 数据科学与工程学院, 上海 200062
  • 收稿日期:2021-08-04 出版日期:2021-09-25 发布日期:2021-09-28
  • 通讯作者: 张召 E-mail:zhzhang@dase.ecnu.edu.cn
  • 基金资助:
    国家自然科学基金(U1811264, U1911203, 61972152)

Blockchain-oriented data management middleware

Sijia DENG, Xing TONG, Haibo TANG, Zhao ZHANG*(), Cheqing JIN   

  1. School of Data Science and Engineering, East China Normal University, Shanghai 200062, China
  • Received:2021-08-04 Online:2021-09-25 Published:2021-09-28
  • Contact: Zhao ZHANG E-mail:zhzhang@dase.ecnu.edu.cn

摘要:

作为一种去中心化的分布式账本, 区块链被广泛应用于互不可信的多方之间共享数据. 相比于发展多年的传统数据库, 区块链存在无法支持丰富查询、对外提供查询接口单一和查询响应慢的问题. 简单的组织结构和离散的存储方式是限制交易数据表达的主要原因. 为了弥补现有区块链系统的不足, 构建抽象模型、封装易于使用的接口以及提升查询效率是实现基于区块链的高效应用开发的主要方式. 鉴于此, 提出一种面向区块链的通用数据管理中间件, 具有如下特征: ①支持自定义构建数据模型, 灵活地为交易数据抽象新模型; ②提供多种数据访问接口支持丰富查询并采用同步缓存机制等优化方式提升查询效率; ③设计提前哈希计算和异步批处理策略优化交易的延迟和吞吐. 提出的数据管理中间件已集成于开源区块链CITA中, 并通过实验验证其易用性与高效性.

关键词: 区块链, 数据管理, 交易数据, 抽象模型

Abstract:

As a decentralized distributed ledger, blockchain technology is widely used to share data between untrusted parties. Compared with traditional databases that have been refined over many years, blockchains cannot support rich queries, are limited to single query interfaces, and suffer from slow response. Simple organizational structures and discrete storage limits are the main barriers that limit the expression of transaction data. In order to make up for the shortcomings of existing blockchain technology and achieve efficient application development, users can build abstract models, encapsulate easy-to-use interfaces, and improve the efficiency of queries. We also propose a general data management middleware for blockchain, which has the following characteristics: ① Support for custom construction of data models and the flexibility to add new abstractions to transaction data; ② Provide multiple data access interfaces to support rich queries and use optimization methods such as synchronous caching mechanisms to improve query efficiency; ③ Design advance hash calculation and asynchronous batch processing strategies to optimize transaction latency and throughput. We integrated the proposed data management middleware with the open source blockchain CITA and verified its ease of use and efficiency through experiments.

Key words: blockchain, data management, transaction data, abstract model

中图分类号: