通过工作负载自适应数据复制将经济高效的数据馈送到区块链
Cost-Effective Data Feeds to Blockchains via Workload-Adaptive Data Replication
摘要:
向区块链提供外部数据,也就是数据馈送是实现区块链互操作性和支持新兴跨域应用程序(特别是稳定币)的一项重要任务。考虑到现实生活中的数据密集型提要(例如,高频价格更新)和使用区块链(即Gas)的高成本,降低数据馈送的Gas成本势在必行。受金融和其他应用程序中不断变化的工作负载的影响,这项工作的重点是设计一种动态的、工作负载感知的方法,以提高Gas的成本效益。这种设计空间在现有的区块链研究中没有得到充分研究,目前为止,区块链研究主要集中在静态数据放置上。这项工作提出了GRuB,这是一种具有成本效益的数据馈送,可以在区块链和链下云存储之间动态复制数据。GruB的数据复制通过监控当前工作负载并在线做出决策来适应工作负载。数据复制提出了一系列在线算法,以实现区块链Gas中的有界最坏情况成本。GruB在不受信任的云链下运行决策组件,以降低Gas成本,并采用安全协议来验证区块链和云之间传输的数据。整个GRuB系统可以随着工作负载的变化自动实现低Gas成本。我们构建了一个GruB原型,可以使用以太坊和Google LevelDB,并支持稳定币中的实际应用程序。在从以太坊合约调用历史收集的实际工作负载和YCSB的混合工作负载下,我们系统地评估了GRuB的成本,与静态数据放置的基线相比,Gas节省了10% ~ 74%。
英文摘要:
Feeding external data to a blockchain, a.k.a. data feed, is an essential task to enable blockchain interoperability and support emerging cross-domain applications, notably stablecoins. Given the data-intensive feeds in real life (e.g., high-frequency price updates) and the high cost in using blockchain, namely Gas, it is imperative to reduce the Gas cost of data feeds. Motivated by the constant-changing workloads in finance and other applications, this work focuses on designing a dynamic, workload-aware approach for cost effectiveness in Gas. This design space is understudied in the existing blockchain research which has so far focused on static data placement. This work presents GRuB, a cost-effective data feed that dynamically replicates data between the blockchain and an off-chain cloud storage. GRuB's data replication is workload-adaptive by monitoring the current workload and making online decisions w.r.t. data replication. A series of online algorithms are proposed that achieve the bounded worst-case cost in blockchain's Gas. GRuB runs the decision-making components on the untrusted cloud off-chain for lower Gas costs, and employs a security protocol to authenticate the data transferred between the blockchain and cloud. The overall GRuB system can autonomously achieve low Gas costs with changing workloads. We built a GRuB prototype functional with Ethereum and Google LevelDB, and supported real applications in stablecoins. Under real workloads collected from the Ethereum contract-call history and mixed workloads of YCSB, we systematically evaluate GRuB's cost which shows a saving of Gas by 10% ~ 74%, with comparison to the baselines of static data-placement.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。