| In recent years,with the continuous integration of information technology and modern education,online education has flourished.However,there are many problems in online education,including the non-interoperability of educational software data,the repeated construction of basic capabilities,the difficulty of software development,and the high cost of school access.Therefore,a middleware platform in the field of online education is needed to provide common basic capabilities for third-party applications to reduce the development cost of online education applications.The platform can be connected to multiple schools,providing unified and easy-to-use basic campus management capabilities.Schools can authorize and use third-party applications connected to the platform with one click,reducing the cost of access and promotion of educational software.The online education middleware platform consists of five modules: organizational structure management,user management,application access,message notification,and authorization identification.The use of g RPC and Etcd to realize the microservice architecture,and the use of Docker for containerized deployment solve the core problems of service registration and discovery,load balancing and remote procedure calls,and improve the response performance,availability and scalability of the system.Using Jaeger,Elastic Search,Grafana,Kong and other components and tools,it solves the difficulties of log processing,link tracking,and gateway distribution under the microservice architecture.The authorization module of this system reforms the authorization method of the OAuth2.0 authorization code,and adds the authorization step of exchanging a temporary authorization code for a permanent authorization code,which is more suitable for schools’ authorization scenarios for third-party applications,and the data security of schools connected to the platform is guaranteed.The message notification uses the Base64 algorithm,AES algorithm and SHA1 algorithm for encoding,encryption and signature to ensure the security of message transmission.After testing,this system solves the single point of failure problem of the system by independently deploying multiple identical copies of microservices in Redis cluster mode and My SQL master-slave mode.The entire system has good disaster tolerance and self-recovery capabilities.With the support of Kong gateway intelligent routing and load balancing algorithm,the performance of the system is good.In the case of the total system QPS2500 and the single interface QPS400,the hardware resource consumption is less than60%,and the response time of the external interface is less than 400 milliseconds,which is40% shorter than the response time of the monolithic architecture.The system is currently running online in a certain department of Tencent’s smart industry group,accessing more than hundreds of third-party applications and providing services for more than 600 schools. |