| With the rapid development of the Internet and online education,more and more online vocational education systems have been born.Through the online vocational education system,people working in enterprises can use their accumulated practical technical knowledge to carry out vocational skills education and help trainees gain vocational skills or improve work efficiency.Students generally reflect that these systems should increase interactivity and reduce the time cost of students choosing courses.Online vocational education systems for the general public must ensure the continuous high availability of services and good performance in order to allow students to have a good experience.However,the existing online education system based on a monolithic architecture cannot guarantee the ability to provide high-quality services under a large number of users.In response to the above problems,this paper designs and implements a high-performance,high-availability online vocational education system based on microservice architecture.The microservice architecture is different from the previous development methods of monolithic architecture online vocational education systems.The system is divided into multiple microservices,which is easy to develop and maintain,and improves the system scalability.The system uses the Spring Cloud framework for development,and uses Eureka as the service discovery and registration center.In order to ensure the high availability of the system,Spring Cloud Gateway is used as a gateway and Sentinel is used to implement cluster current limiting.In order to decouple the processing of points messages by business module,the incentive system microservices are combined with Kafka for asynchronous processing of points messages.In order to improve system performance,Redis is used to cache courses and student information and other frequently queried data,and Elastic Search search engine is used to quickly search courses.In order to solve the current problems in the online vocational education system,the system uses an incentive system to encourage communication between teachers and students.After the point task is achieved,the message of the point completion task is pushed to the students through Web Socket server push technology,thereby improving the students’ sense of gain.The system judges the quality of the course based on the evaluation scores of the course and the number of private chat comments,so as to reduces the time cost for students to choose the course.The online vocational education system provides a variety of interactive methods.Teachers and students can exchange course content through private messages and comment areas.In addition to the exchange of course content,students can exchange professional knowledge in the forum.Finally,the function,performance and usability tests of this system are carried out.The test result shows that the whole system is running well.Function,performance and usability have all reached the expected goals.Through the above work,a highly available,high performance online vocational education system has been completed,which can meet the needs of students’ learning and teachers’ teaching. |