Font Size: a A A

An Event-Sourced System For Points And Cash Transactions

Posted on:2020-09-23Degree:MasterType:Thesis
Country:ChinaCandidate:Y F ZhongFull Text:PDF
GTID:2439330572473605Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
With the rapid development of e-commerce,more and more companies are investing lots of energy to build their membership system.As one of the important factors of those systems,the point system has received wide attention and become a research hotspot.The traditional point marketing strategy is relatively simple,resulting in low user engagement and user satisfaction.Therefore,this paper intends to construct a system which supports points and cash transactions,combined with third-party payment.The system promotes the closed loop of points and cash,providing more kinds of payment forms for business systems,thus realizing the model innovation of point marketing.The main work of this paper is as follows:(1)There are some problems in traditional snapshot strategy such as the threshold is difficult to set and the snapshot tasks are redundant.A new adaptive event sourcing snapshot strategy is proposed to solve these problems.This paper focuses on the snapshot problem in event sourcing.Two common snapshot strategies and their optimal values are analyzed,and then four evaluation metrics are proposed.According to the disadvantages of the existing strategies,combined with the influencing factors in the actual scenario,an adaptive snapshot strategy is proposed,which automatically schedules snapshot tasks by workload.Additionally,three strategies are tested by simulating user requests in the e-commerce platform.The results show that the adaptive strategy effectively improves the snapshot hit rate in the early stage.Besides,from the overall perspective,the number of snapshots is significantly reduced under the premise of similar validity.As a result,the validity and feasibility of the strategy are verified.(2)The Actor-based system cannot be easily integrated with the existing CQRS architecture.To solve this problem,new generic components of CQRS based on Actor model are proposed and the system is realized through these components and the snapshot strategy in(1).Besides,the usage of the components is illustrated by two core processes,ordering and withdrawing.In addition,this paper proves the metrics has reached the expected level through testing.(3)In view of the potential credit risk of the system in(2),this paper intends to build a consortium bolockchain based on Hyperledger Fabric,applying the blockchain technology to the system.Specifically,the smart contract is designed to verify and store transaction information to ensure that the system data cannot be tampered.The credibility of the platfonn is enhanced finally.
Keywords/Search Tags:event sourcing, snapshot, actor model, cqrs, consortium blockchain
PDF Full Text Request
Related items