节点文献

基于微服务的B2B2C平台销售系统服务端的设计与实现

Design and Implementation of Server Side of B2B2C Platform Sales System Based on Microservices

【作者】 王建勇;

【导师】 刘传昌;

【作者基本信息】 北京邮电大学 , 计算机科学与技术, 2020, 硕士

【摘要】 信息化时代的到来促进了电子商务的发展,B2B2C模式结合了B2B和B2C的特点,能提供更为优质的服务。但传统的B2B2C平台缺乏对线下实体门店的支持,同时缺少宣传推广的营销模式。针对上述两个问题,本论文提出了新的B2B2C销售模型,设计了 B2B2C平台销售系统,该系统对线上和线下两种销售渠道进行统一管理,并基于微信实现多级代理、推荐分销的社交电商功能。传统的单体式应用架构具有模块耦合严重、扩展性不足等弊端。本论文采用微服务架构和Spring Cloud框架对服务端进行实现,实现了系统功能的解耦,相比单体式应用具有更好的性能。微服务在系统的复杂性、服务的持续集成等方面存在弊端。本论文采用Docker容器技术和Kubernetes容器集群管理平台,为微服务的高效部署和运维提供坚实的保障。在微服务系统中,用户会话不再适合使用Session进行保存,也无法使用Filter或Interceptor拦截所有请求。本论文设计并实现了基于API网关Zuul的集中式访问控制模块,基于Token进行登录认证,提出细粒度角色权限管理模型FGRBAC(Fine-Grained Role-Based Access Control),实现权限管理功能,使系统具有更好的安全性和更快的访问速度。Kubernetes平台提供HPA对Pod进行水平伸缩,但HPA v1默认只采用CPU使用率作为度量指标。本论文设计了多度量指标的水平弹性伸缩模块,根据CPU、内存和网络使用状况对系统进行伸缩管理,具有更准确的决策效果,使系统具有更好的伸缩性。B2B2C平台销售系统服务端分为用户管理、店铺管理、产品管理、订单管理和支付分成五大微服务模块,本论文对各模块进行了需求分析和概要设计,并从数据模型、业务流程、接口定义和类设计等方面对实现过程进行了详细介绍。最后对系统进行了测试和验证,测试结果表明了系统的有效性和可行性,本论文所取得的研究成果对B2B2C平台销售系统服务端的微服务实现具有一定的参考价值。

【Abstract】 The advent of the information age has promoted the development of e-commerce,B2B2C mode combines the features of B2B and B2C,and can provide better services.However,the traditional B2B2C platform lacks support for offline physical stores,and lacks a marketing model for promotion.In response to the above two issues,this thesis proposes a new B2B2C sales model and designs a B2B2C platform sales system.The system manages online and offline sales channels in a unified manner,and implements multi-level agency&recommended distribution social e-commerce functions based on WeChat.The traditional monolithic application architecture has the disadvantages of serious module coupling and insufficient scalability.This thesis uses the microservices architecture and the Spring Cloud framework to implement the server side of the sales system,and achieves the decoupling of system functions,which makes the system has better performance than monolithic applications.Microservices have disadvantages in terms of system complexity and continuous integration of services.This thesis uses Docker container technology and Kubernetes container cluster management platform to provide solid guarantee for the efficient deployment and operation of microservices.In a microservice system,user sessions are no longer suitable for saving using Sessions,and it is impossible to use Filter or Interceptor to intercept all requests.This thesis designs and implements a centralized access module based on the API gateway Zuul,which implements the function of login authentication based on Token.A fine-grained role authority management model FGRBAC(Fine-Grained Role-Based Access Control)is proposed to implement the authority management function.The Module make the system have better security and faster access speed.The Kubernetes platform provides HPA for horizontal expansion and reduction of Pods,but HPA v1 only uses CPU usage as a metric by default.This thesis designed a horizontal elastic scaling module with multiple metrics.It expands and shrinks the system according to the CPU,memory,and network usage,which has more accurate decision-making effects,and provides the system with better scalability.The server side of B2B2C platform sales system is divided into five microservice modules:user management,store management,product management,order management and payment&share.In this thesis,the requirements analysis and outline design of each module are carried out,and the implementation process is introduced in detail from the aspects of data model,business process,interface definition and class design.Finally,the system is tested and verified.The test results show the effectiveness and feasibility of the system.The research results obtained in this thesis have certain reference value for the realization of the service side of the B2B2C platform sales system based on microservices.

【关键词】 B2B2C; 销售系统; 微服务; 访问控制; 弹性伸缩;
【Key words】 B2B2C; sales system; microservices; access control; elastic scaling;
节点文献中: 

本文链接的文献网络图示:

本文的引文网络