一种基于微服务架构的在线教育平台设计与实现

2021-03-22 16:36:05洪柏桦毛文琪瞿少成
电脑知识与技术 2021年4期
关键词:功能服务课程

洪柏桦 毛文琪 瞿少成

摘要:针对传统单体式架构在线教育平台存在灵活性较低、可拓展性和稳定性不足等问题,设计了一种基于微服务架构的在线教育平台。首先,该在线教育平台采用Spring Cloud框架来搭建微服务;然后,利用Nacos组件和其他微服务组件搭建项目基础环境;同时还选取MyBatis-Plus框架作为持久层的框架;最后利用Vue.js框架搭建前台系统。该系统实现了线上课程的有效管理,满足了用户的个性化学习需求。相比与传统单体式架构系统,该系统将不同服务模块部署在不同服务器上,使用灵活、拓展方便、稳定性好,具有一定的实用价值。

关键词:微服务;在线教育平台;Spring Cloud;MyBatis-Plus;Vue.js

中图分类号:TP319      文献标识码:A

文章编号:1009-3044(2021)04-0010-03

Abstract: Aiming at the problems of low flexibility, poor scalability and stability in traditional monolithic online education platforms, an online education platform based on the microservice architecture is designed. First, the online education platform uses the Spring Cloud framework to build microservices; second, it uses Nacos component and other microservice components to build the basic project environment; at the same time, it also selects My Batis-Plus as the persistence layer framework; finally uses Vue.js to build the front-end system. This system realizes the effective management of courses and meets the needs of people's personalized learning. Compared with the traditional monolithic architecture system, this system deploys different service modules on different servers, which is flexible in use, convenient in expansion, stable, and has certain practical value.

Key words: microservice; online education platform; spring cloud; mybatis-plus; vue.js

1 背景

近些年來,随着互联网的快速发展,基于网络发展的新型教育形态正在风靡全球。人们快速增长的在线学习需求,推动了在线教育平台的迅速发展[1]。今年,学校以及培训机构无法进行线下教学,这更加推动了教育行业的线上转变。在线教育的热潮推动了各类在线教育平台和工具的兴起[2]。由于技术的局限性,许多传统的在线教育平台采用单体式架构进行开发,随着业务规模的增长,单体式架构的系统在灵活性、可拓展性、稳定性和维护等方面存在一些瓶颈[3]。

于是,人们提出了微服务的设计理念,它是系统架构上的一种设计风格[4],其设计思想是将系统拆分成多个相互独立运行和部署在不同服务器上的微型服务,服务之间通过HTTP/HTTPS或者RPC协议进行通信协作[5-6],这就使得系统的及时交付以及灵活拓展成为可能[7-8]。……

登录APP查看全文

猜你喜欢
功能服务课程
也谈诗的“功能”
中华诗词(2022年6期)2022-12-31 06:41:24
数字图像处理课程混合式教学改革与探索
软件设计与开发实践课程探索与实践
计算机教育(2020年5期)2020-07-24 08:53:38
为什么要学习HAA课程?
服务在身边 健康每一天
今日农业(2019年12期)2019-08-15 00:56:32
服务在身边 健康每一天
今日农业(2019年10期)2019-01-04 04:28:15
服务在身边 健康每一天
今日农业(2019年16期)2019-01-03 11:39:20
招行30年:从“满意服务”到“感动服务”
商周刊(2017年9期)2017-08-22 02:57:56
关于非首都功能疏解的几点思考
中西医结合治疗甲状腺功能亢进症31例