| As the Internet plays a more and more important role in our lives,online education has attracted more and more attention and attempts.This year,when the epidemic hit,students and teachers across the country experienced the convenience brought by online teaching.In the Internet age,the development prospects of online education are very broad.In this context,based on the microservice architecture,an online live broadcast education platform was designed and implemented.Teachers can publish online live or video courses,and students can purchase learning courses and conduct evaluations and exchanges.In addition,technologies and solutions such as microservice architecture,clustering,and load balancing are adopted to ensure the concurrency,availability and scalability of the system.System function modules are divided based on the demand analysis and microservice theory to decouple the modules,and then develops,deploys and maintains the service as a unit.The system mainly includes services such as user center,course center,lecturer center,order payment,message notification,forum discussion and feedback assistance.On the basis of system requirements analysis,the functions of each service are designed detailly,and the descriptions are displayed in the form of sequence diagrams or flowcharts.The Spring Boot framework and the Mybatis framework are used for logic function development and database access.For functions such as service discovery,remote method call,and fuse degradation in the microservice architecture,components provided by the Spring Cloud framework are used for development and implementation.In terms of performance optimization,the memory-based Redis is used to cache hot data,the message queue Rabbit MQ is used to asynchronously process non-real-time business logic to decouple and improve throughput,and cluster and load balancing technologies are used to improve the concurrency capacity and availability of the system.Finally,the function and performance of the system are tested through black box testing and performance testing tools.The test results show that the system completely fulfills the functional requirements of users in different roles.At the same time,the system performed well under high concurrent requests,the response time was in line with expectations,the front-end page behaved normally and consistently under different browsers,and the user experience was good.In addition,the low degree of coupling between the various services of the system facilitates the maintenance,iterative upgrade and expansion of a single service. |