计算机科学 ›› 2018, Vol. 45 ›› Issue (11A): 580-583.

所属专题: 区块链技术

• 综合、交叉与应用 • 上一篇    下一篇

多区块链交易分发和事件处理的系统方案

刘雄文   

  1. 上海壹帐通金融科技有限公司 上海201102
  • 出版日期:2019-02-26 发布日期:2019-02-26
  • 作者简介:刘雄文(1975-),男,硕士生,高级工程师,主要研究方向为分布式系统、大数据、人工智能、金融科技,E-mail:whshliu@126.com。

System Solution of Multi-blockchain Transaction Dispatching and Event Handling

LIU Xiong-wen   

  1. Shanghai OneConnect Technology Co.,LTD.,Shanghai 201102,China
  • Online:2019-02-26 Published:2019-02-26

摘要: 在基于拜占庭容错协议设计的区块链系统中,系统的效率和性能较低,限制了区块链的应用与发展。提出了一种基于多区块链系统支持交易分片和事件处理的系统方案。该方案中,系统被划分为应用客户端、处理系统、各区块链3个层面。应用客户端用于发送交易请求和接收感兴趣的事件,处理系统进行交易的分发和事件处理,各区块链用于区块链内部处理交易请求和事件。处理系统适配区块链数量可变和不可变的两类多区块链系统,设计了选择区块链的两种策略,即映射关系表和哈希一致性,两种策略在交易分发时依据负载均衡、单调性和一致性的原则,并基于交易的业务类型和业务类型内部ID号把交易请求分发到合适的区块链。每个区块链与处理系统内部的交易调用客户端、事件和消息流客户端建立一一对应关系;每个应用客户端与处理系统内部的交易应用调用服务端、交易应用事件连接服务端、事件消息流服务端交互,发送交易的请求并获取交易的结果。对交易分发的方案和事件处理进行具体的设计,并对系统的整体方案进行了基本的测试和验证。

关键词: 多区块链, 交易分发, 事件处理, 消息流, 一致性

Abstract: In the blockchain system based on the Byzantine Fault Tolerance (BFT) protocol,the efficiency and perfor-mance of system are poor,which limited the application and development of blockchain.A system solution of supporting transaction dispatching and event handling based on multiple blockchains was proposed.In the solution,the system is divided into application clients,handling system and blockchains.Application clients are used to send out transaction requests and receive the events which are interested in.Every blockchains are used to internally handle transaction requests and events.The handling system is adaptive to the system of variable number of blockchain and the system of immutable number of blockchain.Two polices of selecting blockchain,including mapping relationship table and hash consistency alogorithm,are designed.According to the load balance,monotonicity and consistency,both of these two policies dispatch transactions based on the service type and the internal ID of service type.Every blockchain set up the one-to-one correspondence with transaction calling client,event and message streaming client.Every application client sents out the transaction requests and receives the transaction results by interacting with transaction application calling ser-ver,transaction application event connection server and event message streaming server.Transaction dispatcher and event handler were designed in detail,and basic test and verification were made for the whole system solution.

Key words: Consistency, Event handling, Message stream, Multiple blockchain, Transaction dispatching

中图分类号: 

  • TP311
[1]袁勇,王飞跃.区块链技术发展现状与展望[J].自动化学报,2016,42(4):482.
[2]董宁,朱轩彤.区块链技术演进及产业应用展望[J].信息安全研究,2017,3(3):200-210.
[3]王继业,高灵超,董爱强,等.基于区块链的数据安全共享网络体系研究[J].计算机研究与发展,2017,54(4):742-749.
[4]何蒲,于戈,张岩峰,等.区块链技术与应用前瞻综述[J].计算机科学,2017,44(4):6.
[5]许涛.区块链技术在教育教学中的应用与挑战[J].现代教育技术,2017,27(1):110-111.
[6]安瑞,何德彪,张韵茹,等.基于区块链技术的防伪系统的设计与实现[J].密码学报,2017,4(2):199-208.
[7]田海博,何杰杰,付利青.基于公开区块链的隐私保护公平合同签署协议[J].密码学报,2017,4(2):187-198.
[8]夏新岳.基于区块链的股权资产购买和转赠设计与实现[D].内蒙古:内蒙古大学,2016:29-36.
[9]黄洁华,高灵超,许玉壮,等.众筹区块链上的智能合约设计[J].信息安全研究,2017,3(3):211-219.
[10]张波.国外区块链技术的运用情况及相关启示[J].金融科技时,2016(5):35.
[11]黄征,李祥学,来学嘉,等.区块链技术及其应用[J].信息安全研究,2017,3(3):237-245.
[12]冯超政,蒋溢,何军,等.基于冷热数据的MongoDB自动分片机制[J].计算机工程,2017,43(3):7-10.
[13]王亚玲,杨超,章名尚.数据库系统应用分片中间件[J].计算机系统应用,2015,24(10):76-78.
[14]吴黎兵,党平,聂雷,等.一种可分片预留接纳控制算法研究[J].计算机研究与发展,2014,51(6):1201-1204.
[15]蔡维德,郁莲,玉荣,等.基于区块链的应用系统开发方法研究[J].软件学报,2017,28(6):1474-1487.
[1] 周慧, 施皓晨, 屠要峰, 黄圣君.
基于主动采样的深度鲁棒神经网络学习
Robust Deep Neural Network Learning Based on Active Sampling
计算机科学, 2022, 49(7): 164-169. https://doi.org/10.11896/jsjkx.210600044
[2] 靳利贞, 李庆忠.
基于接缝一致性准则的结构纹理图像快速合成算法
Fast Structural Texture Image Synthesis Algorithm Based on Seam ConsistencyCriterion
计算机科学, 2022, 49(6): 262-268. https://doi.org/10.11896/jsjkx.210400039
[3] 许华杰, 陈育, 杨洋, 秦远卓.
基于混合样本自动数据增强技术的半监督学习方法
Semi-supervised Learning Method Based on Automated Mixed Sample Data Augmentation Techniques
计算机科学, 2022, 49(3): 288-293. https://doi.org/10.11896/jsjkx.210100156
[4] 刘意, 毛莺池, 程杨堃, 高建, 王龙宝.
基于邻域一致性的异常检测序列集成方法
Locality and Consistency Based Sequential Ensemble Method for Outlier Detection
计算机科学, 2022, 49(1): 146-152. https://doi.org/10.11896/jsjkx.201000156
[5] 夏中, 向敏, 黄春梅.
基于CHBL的P2P视频监控网络分层管理机制
Hierarchical Management Mechanism of P2P Video Surveillance Network Based on CHBL
计算机科学, 2021, 48(9): 278-285. https://doi.org/10.11896/jsjkx.201200056
[6] 赵潇, 李仕林, 李凡, 余正涛, 张林华, 杨勇.
局部细粒度信息引导的双循环一致性绝缘子缺陷样本生成
Double-cycle Consistent Insulator Defect Sample Generation Method Based on Local Fine-grainedInformation Guidance
计算机科学, 2021, 48(6A): 581-586. https://doi.org/10.11896/jsjkx.200500026
[7] 郭文, 尹童灵, 张天柱, 徐常胜.
时间一致性保持的多任务稀疏深度表达视觉跟踪
Temporal Consistency Preserving Multi-Mask Sparse Deep Representation for Visual Tracking
计算机科学, 2021, 48(6): 110-117. https://doi.org/10.11896/jsjkx.200800212
[8] 黄鑫权, 刘爱军, 梁小虎, 王桁.
基于矩阵论的一致性控制算法收敛速度分析
Matrix Theory Aided Convergence Analysis of Consensus Behavior in FANET with Beacon Loss
计算机科学, 2021, 48(6): 288-295. https://doi.org/10.11896/jsjkx.201000137
[9] 高枫越, 王琰, 朱铁兰.
有适应力的分布式状态估计方法
Resilient Distributed State Estimation Algorithm
计算机科学, 2021, 48(5): 308-312. https://doi.org/10.11896/jsjkx.200300117
[10] 张子良, 庄毅, 叶彤.
基于元模型的协同建模模型组装与更新方法
Cooperative Modeling Model Combination and Update Method Based on Meta-model
计算机科学, 2021, 48(12): 67-74. https://doi.org/10.11896/jsjkx.201100024
[11] 欧阳鹏, 陆璐, 张凡龙, 邱少健.
基于迁移学习和过采样技术的跨项目克隆代码一致性维护需求预测
Cross-project Clone Consistency Prediction via Transfer Learning and Oversampling Technology
计算机科学, 2020, 47(9): 10-16. https://doi.org/10.11896/jsjkx.200400041
[12] 赵学远, 周绍磊, 王帅磊, 闫实.
切换拓扑条件下的多无人机系统编队包含控制
Formation Containment Control of Multi-UAV System Under Switching Topology
计算机科学, 2020, 47(6A): 577-582. https://doi.org/10.11896/JsJkx.190700064
[13] 李笑宇,高清维,卢一相,孙冬.
一种根据图像能量调整的图像融合方法
Image Fusion Method Based on Image Energy Adjustment
计算机科学, 2020, 47(1): 153-158. https://doi.org/10.11896/jsjkx.181202437
[14] 陈静, 舒强, 谢昊飞.
基于故障定位的测试用例优先排序方法
Priority Ranking Method of Test Cases Based on Fault Location
计算机科学, 2019, 46(8): 239-243. https://doi.org/10.11896/j.issn.1002-137X.2019.08.039
[15] 张森, 刘文奇, 赵宁.
复杂网络上多智能体系统的一致性研究
Research of Consensus in Multi-agent Systems on Complex Network
计算机科学, 2019, 46(4): 95-99. https://doi.org/10.11896/j.issn.1002-137X.2019.04.015
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!