Font Size: a A A

Design And Implementation Of Mobile Transaction Fault Tolerance

Posted on:2018-11-30Degree:MasterType:Thesis
Country:ChinaCandidate:S LiFull Text:PDF
GTID:2348330542451586Subject:Software engineering
Abstract/Summary:PDF Full Text Request
The High-load mobile transactions require horizontal scalability of throughput through distributed system,resulting in multiple conflicting targets for distributed system:transaction efficiency,transaction consistency,network partitioning and availability.At the same time,we also need to consider the problem of the mobile network dropped line.According to the CAP theory,while maintaining the consistency of performance at the same time,the final consistency of the transaction fault tolerance model.In this thesis,BASE transaction fault tolerance is implemented through message middleware and cluster architecture,which is suitable for long transaction processing in mobile transaction scene:the process begins with the order being submitted and being processed in all aspects.There are multiple nodes with the same function in the distributed system,which implements the redundancy of the processing.The log and persistence mechanism of the message queue can solve the segmentation of the distributed system,so as to realize the final consistency of the various links and processes of the transaction.The research contents are as follows:(1)The design of high load mobile transaction transaction fault tolerance of the basic structure,through the message middleware asynchronous decoupling transaction transaction for a number of local small transactions,through the Spring framework annotation transaction management mechanism to ensure that the message and local transaction execution atomicity.To achieve the reliability of message delivery,through the message middleware log and persistence mechanism to achieve the reliability of message storage.(2)For the loss of message caused by single point of failure of the web server,the function node and message middleware in the final consistency transaction fault-tolerant model,the function redundancy is realized by cluster technology,heartbeat detection and load balancing through message middleware and load balancer to achieve fault detection and function transfer.(3)Mobile network dropped the line causes the problem of the transaction transaction execution state feedback is interrupted,to ensure that the message after the persistence,through the user session information to re-obtain the order status,to achieve the continuity of transaction status,through the message queue power delivery mode and message tables to solve the problem of repeating consumption.(4)In the current SSM(SpringMVC Spring Mybatis)technology framework,through the Spring annotation transaction to achieve the message and local affairs and local message storage atomicity and Mybatis framework of data persistence,to ensure the reliability of the message,through ActiveMQ idempotent delivery and de-weighting to achieve the idiom of message consumption,through Nginx and message middleware heartbeat detection and Zookeeper + LevelDb based on the cluster management applications to achieve web server,function nodes and message middleware failover.Based on the Redis centralized session sharing,the problem of loss of session information after the disconnection of mobile users is solved.Finally,the transaction consistency fault model is implemented to verify the validity of the fault-tolerant design scheme and the time delay of consistency acquisition.In this thesis,we use the Jmeter tool to simulate the final consistency fault model of the transaction through the open source framework.Finally,the Jmeter tool is used to simulate the high concurrent request in the real transaction scene.Finally,the experimental results show that the fault can be recovered in the millisecond time under the web server and function node failure,and the average response time in 3 seconds,through the order status to observe the consistency of the transaction,and the message system failure can be restored within 5 seconds,while the mobile disconnection is still connected after the normal reception of transaction execution status,the experimental results The effectiveness and availability of the program.
Keywords/Search Tags:High Load, Mobile Transaction, Final Consistency, Fault Tolerance Mechanism, Long Transaction
PDF Full Text Request
Related items