Font Size: a A A

The Design And Implementation Of Course Trading System Based On Microservice

Posted on:2020-03-15Degree:MasterType:Thesis
Country:ChinaCandidate:W W ChengFull Text:PDF
GTID:2507306503473794Subject:Software engineering
Abstract/Summary:PDF Full Text Request
At present,China’s education industry is on the rise.Policy,capital,technology and the tradition of valuing education are the key factors that continue to drive the stable development of the education market and push the education industry to a new height.With the rapid development of computer technology,artificial intelligence,big data,AI,such as a revolutionary new technology continues to overturn the traditional education mode,leading education to intelligent,digital,three-dimensional,flat,to make future personalization,home school,teacher three linkage,all-around immersion education new mode.In order to adapt to the new development trend,each education group has gradually increased its investment in online education out of the need of cost saving and innovation,presenting an unprecedented revolution in the field of education.K12 private education and training giant is accelerating to promote multi-field layout and strengthen education standardization.However,due to the business inertia of an educational institution,most of its business still adopts the traditional operation mode and USES the relatively old information system.Usually,a new type of business is introduced,and an independent course sales system is developed for this kind of business,and the storage is also independent of each other.Because the volume of business is generally small,these systems usually adopt a single architecture pattern,regardless of horizontal scalability.After years of accumulation and development,a large number of functional redundancy development,maintenance,hardware and software resources caused a certain degree of waste,and version control is very difficult;Due to the independent storage of each system,the accounts of each business line were not connected,and the balance,order,account and other data of users could not be unified,resulting in poor user experience.The traditional trading system is slow in processing requests,and it takes more than 10 seconds for each transaction to be processed.During the peak of business,problems such as server paralysis caused by excessive instantaneous pressure are easy to occur.As a result,the original system has been unable to support such as double eleven newspaper system performance requirements of high marketing activities.The contradiction between the backward application system and the fast developing business of education industry is more and more prominent.In view of the above problems,based on the in-depth analysis of the business needs of education and training institutions,this paper extracts the use of micro-service architecture to transform the existing system,and redesigns a set of mobile terminal course trading system.This system adopts the micro-service architecture,which subdues the course data maintenance function of each business line to the course service;Get through the student data of each business line,complete the data cleaning and integration,and serve students independently;By limiting the current of each service,the system can be stabilized,and the current limiting service can be separated to deal with high concurrent activities,such as scrambling.The main research contents and results of this paper are as follows:(1)Through the design and implementation of course services,the integration of primary school,high school,one-to-one,full-time business line of course data,to achieve the goal of unified maintenance of the function of the business line of course listing,the unity of the course data structure.So as to reduce the cost of development,reduce the difficulty of system maintenance,improve system stability.(2)Through the design and implementation of student services,student data from primary school,high school,one-to-one and full-time business lines can be connected,so that student data can be stored uniformly,student balance can be used across business lines,orders can be collectively inquired,student accounts can be logged in across business lines,and user experience can be improved.(3)aiming at the problem that the server may be paralyzed due to the excessive instantaneous pressure caused by the rush hour,a set of current limiting scheme is designed and implemented.Firstly,the current limiting scheme is carried out based on the main entrance of nginx;secondly,the queuing scheme is designed for the key pages such as login,purchase order and order submission.For the service with low real-time requirement,the asynchronous processing method is adopted to solve the problem that the original system cannot support high concurrency,and to ensure the smooth operation of the server during the peak period by limiting the current,greatly reducing the probability that the server will be paralyzed due to excessive pressure.At present,the course trading system based on micro-services has been put on line smoothly.At the peak of the system,2,000 transactions were completed in minutes,and 33.4 transactions were processed on average every second,which greatly improved the performance of the system.At present,the system runs smoothly and responds flexibly.The running results of the system show that the system provides a good solution for online course trading.
Keywords/Search Tags:Course transactions, micro service, high concurrency, current limitation
PDF Full Text Request
Related items