Font Size: a A A

Design Of High Concurrency Red Envelope System Based On Adaptive Algorithm

Posted on:2019-11-12Degree:MasterType:Thesis
Country:ChinaCandidate:Y C LuoFull Text:PDF
GTID:2428330548979316Subject:Electronic and communication engineering
Abstract/Summary:PDF Full Text Request
Nowadays,the Internet is developing rapidly and the number of Internet users is increasing rapidly.Less and less people are using cash flow,and most people choose to pay online.In such a situation,and at the same time in order to improve the existing activity in Beijing Mobile users,sharing and promoting Beijing Mobile We Chat public number and e-commerce channels,Beijing mobile launched its own payment gateway.The gateway system realizes the monetization of traffic and the means of payment in various channels,and the traffic red envelope project is a primary role in the monetization of traffic flow.Project aimed at promoting role flow red envelope activities make traffic can be shared,integral can be exchanged,traffic can be purchased between mobile users,to do the first layer of payment gateway,support payment gateway flow and integral monetization.However,the implementation of this system requires the high concurrency scenarios brought by a large number of mobile users.High concurrency refers to having multiple threads accessing the same data resource at the same time.In layman's terms,it is the same resource that is accessed by different users at the same time.Generally speaking,high concurrency brings about the exhaustion of system resources,and the server pressure is too great to cause downtime.So there are two main problems with the traffic red: first,there are thousands of requests to the server,the database and the entire system.Second,in the case of grabbing red envelopes,how to avoid the data dirty reading of the same red packet at the same time by multiple users at the same time.In popular parlance,multiple users grab the same red.In the traditional high-concurrency red envelope response methods,the general use of high-performance servers,high-performance databases,efficient programming languages,and high-performance Web containers,etc.In terms of high concurrency architecture,caching,database cluster,and load balancing are commonly used.In the case of grabbing a red envelope,the traditional method is to use the synchronization mechanism of thread synchronization.For mobile traffic in Beijing,however,traffic red system,using the traditional solution exposed its shortcomings,first of all,the traditional way is not very good to carry so much access concurrency,followed by the traditional way of synchronized lock because of its characteristics of single channel in the number of users access to reach a certain amount,the efficiency is too low.To this,this paper puts forward a set of more stable and effective than traditional architecture,the architecture of the system makes the system not only on the response time is greatly less than traditional system,and deal with the number of requests per unit time(throughput)also increased,which makes the system in a unit time the number of the distribute red packets and grab a red envelope has improved greatly.However,in the field of concurrent,how a good architecture is also difficult to completely avoid server goes down,so this paper puts forward an adaptive prediction algorithm to optimize the server goes down.At the same time,the characteristics of low efficiency of synchronized locking are optimized.To sum up,the innovation of this paper is:1.Proposed a set of architecture pattern which is superior to the traditional high concurrency,and improved the overall performance of the system.2.In solving the red envelope concurrency mechanism,an atomic operation mode is different from the synchronized lock.3.An adaptive algorithm is proposed to solve the system stability and availability in high-concurrency scenarios.
Keywords/Search Tags:traffic red, High concurrency, Adaptive algorithm
PDF Full Text Request
Related items