| With the advancement of science and technology and the development of high-tech industries,the demand for multi-purpose talents in the society is increasing day by day.People in all walks of life need continuous learning to enhance their own strength for their own progress and development.With the development of the Internet,people are more and more inclined to online learning platforms.The large traffic caused by this will lead to problems such as slow response speed and incorrect response on the online learning platform.To cope with this problem,this thesis proposes and constructs a new type of architecture that supports scalability and high availability to solve problems such as slow system response,low video resource transmission performance,and system service crashes in large-scale user scenarios.The platform uses a distributed micro-serviced service governance architecture and a highly available and concurrent database architecture,and has performed the following main tasks:(1)A large-scale online course learning platform framework including front-end client,back-end management,and service management monitoring is designed to support the scalability of users through the service management monitoring;(2)Based on user characteristics and scenarios,perform functional requirements analysis and non-functional requirements analysis,and design and implement an online course learning platform based on the needs analysis results.The platform includes online video learning,online course quiz,and online course testing.(3)Aiming at the problem of slow response speed of the platform in the scenario of large number of users concurrently,a distributed micro-service architecture that supports scalability and high availability is designed,and the single service architecture under the MVC model is split into RPC-based The distributed architecture of communication enables the pressure of a single server to be spread across multiple servers,thereby improving service response speed and reliability;(4)Aiming at the performance bottleneck caused by the large amount of data written into the database,a distributed high-availability and high-concurrency database service architecture based on Mycat,an enterprise-level database middleware,was designed to hide the physical library and expose the logical library.Split the original database table so that it can be forwarded to multiple databases when a data service request is made,improving the resistance of the database;(5)The platform was implemented based on the Spring Boot framework,and service monitoring and stress testing were performed through Dubbo-Monitor and Jmeter,which verified the effectiveness of the distributed microservice architecture design.The platform uses HTML5 and Bootstrap to render the interface.At the same time,the flat and user-friendly design makes the platform have a better user experience.After functional testing and performance testing,this platform can meet the needs of 100,000 users for concurrent access,can provide services steadily and correctly,and has a fast response speed. |