摘要
MVC架构作为一种经典的软件架构,多年以来被业界广泛使用。但由于MVC代码复杂、效率低下等缺点,很多研究尝试对其进行改良。近年来,伴随着RESTful API的提出,以及前端框架的流行,前后端分离架构逐渐开始取代传统的MVC架构成为业界主流。本文基于前后端分离架构提出了一个由客户端、接口和数据库构成的最简模型,在该模型的基础上又提出了一个简洁、高效的产品设计模式(DASP)。并以一个电子留言板的实际案例详细阐述了该模式的具体设计流程,表明了该模式的有效性和高效性。
As a classical software architecture,MVC architecture has been widely used in the industry for many years.However,due to the complexity and low efficiency of MVC,many studies have tried to improve it.In recent years,with the introduction of RESTful APIs and the popularity of front-end frameworks,the front-end and back-end separation architectures have gradually begun to replace the traditional MVC architecture and become the mainstream of the industry.This paper proposes a simple model consisting of client,interface and database based on the front-end and back-end separation architecture.Based on this model,a simple and efficient product design pattern(DASP)is proposed.An actual case of BBS is used to elaborate on the specific design process,indicating the effectiveness and efficiency of this pattern.
作者
吴晓一
WU Xiao-yi(Xiamen University Tan Kah Kee College,Zhangzhou 363105,China)
出处
《软件》
2020年第8期175-179,共5页
Software