当前位置:主页 > 科技论文 > 软件论文 >

微服务通信框架的设计与实现

发布时间:2018-11-23 16:47
【摘要】:随着软件技术的发展,以及系统应用规模的不断扩大,软件架构从简单的MVC架构逐渐演化到面向服务架构。面向服务架构由于其具有粗粒度、松耦合的架构模式和定义规范明确的通信方式等优点,而广泛地应用于大型企业系统。但由于传统的基于ESB的面向服务架构存在服务调用性能压力较大、服务化架构线性拓展较难等不足之处,国内外互联网企业采用了另一种更加灵活的服务架构风格,即微服务架构。微服务架构具有去中心化、模块高度自治、拓展灵活等诸多优点,可以使用较低的成本实现企业的研发需求,提高研发效率。本文通过对公司业务系统进行需求调研,设计实现了满足具体业务需求的微服务通信框架。本通信框架包括四个模块:基于Netty设计实现的用于底层网络传输的通信模块、建立在通信模块之上用于对传输消息描述和规范的私有协议栈模块、用于微服务架构下分布式组网中服务节点之间进行服务路由、信息提供的目录服务器服务注册中心模块、用于抵御高并发和恶劣网络环境等分布式环境下可能出现的异常因素而导致系统工作异常的服务熔断器模块。本文按照软件工程的思想和方法,结合公司具体的业务需求,通过构建用例模型分析需求,用系统架构图对框架做出了展示。运用类图、时序图和流程图展示了本人主要负责并完成的通信模块、私有协议栈模块、服务注册中心模块以及服务熔断器模块。最后通过测试验证了本框架的功能。该通信框架上线之后,根据基准测试和线上服务运行结果表明,公司多条业务系统整体灵活性得到了大幅度提升,单点压力显著降低。业务整体稳定性和运行效率也有了较大的提升。同时,业务组开发人员的额外工作量也明显下降,资源的利用率得到了显著的提升。
[Abstract]:With the development of software technology and the expansion of system application scale, software architecture has evolved from simple MVC architecture to service-oriented architecture. Service-Oriented Architecture (SOA) is widely used in large enterprise systems due to its advantages of coarse-grained, loosely coupled architecture patterns and well-defined communication methods. However, because the traditional service-oriented architecture based on ESB has some disadvantages, such as the pressure of service invocation performance and the difficulty of linear expansion of service-oriented architecture, Internet enterprises at home and abroad have adopted another more flexible service architecture style. Microservice architecture. Micro-service architecture has many advantages, such as decentralization, high autonomy of modules, flexible development and so on. It can realize the R & D demand of enterprises and improve R & D efficiency with lower cost. In this paper, we design and implement a micro service communication framework to meet the specific business requirements by researching the requirements of the company's business system. The communication framework consists of four modules: the communication module designed and implemented based on Netty for the underlying network transmission, the private protocol stack module built on the communication module to describe and standardize the transmission messages. It is used for service routing between service nodes in distributed network under microservice architecture. Directory server service registry module provides information. A service fuse module used to resist possible anomalies in distributed environments, such as high concurrency and bad network environments, resulting in abnormal system performance. According to the idea and method of software engineering and combined with the specific business requirements of the company, this paper analyzes the requirements by constructing the use case model, and presents the framework with the system architecture diagram. The class diagram, timing diagram and flow chart are used to show the communication module, the private protocol stack module, the service registry module and the service fuse module. Finally, the function of this framework is verified by testing. The results of benchmark test and online service operation show that the overall flexibility of the company's multiple business systems has been greatly improved and the single point pressure has been significantly reduced. Business overall stability and operational efficiency has also been greatly improved. At the same time, the additional workload of business group developers is also significantly reduced, and the utilization of resources has been significantly improved.
【学位授予单位】:北京交通大学
【学位级别】:硕士
【学位授予年份】:2017
【分类号】:TP311.52

【相似文献】

相关期刊论文 前10条

1 ;Web服务≠SOA[J];软件世界;2006年23期

2 周正午;卢朝霞;;基于面向服务架构的异地医保系统研究[J];网络与信息;2007年12期

3 陈传波;张彬彬;;面向服务架构的迁移方法研究[J];计算机工程与科学;2008年02期

4 韩灯亮;;基于面向服务架构的系统改造与实现探讨[J];电脑知识与技术;2008年11期

5 张景霞;梁永全;;面向服务架构浅析[J];赤峰学院学报(自然科学版);2008年09期

6 冉建华;;面向服务架构在数字景区管理中应用的探讨[J];铁路计算机应用;2009年09期

7 黄小庆;关维德;周宇;夏安邦;;面向服务架构中的服务分类及其应用[J];计算机集成制造系统;2009年09期

8 王松;刘文才;;采用面向服务架构实现敏捷企业[J];重庆教育学院学报;2006年06期

9 阳亮;胡晓庆;方仪;;面向服务架构应用技术研究[J];电脑知识与技术;2008年35期

10 ;读者来信[J];互联网周刊;2008年05期

相关会议论文 前6条

1 雷傲雄;谢旭升;邓华锋;;基于SOA方法的企业服务架构研究[A];全国第20届计算机技术与应用学术会议(CACIS·2009)暨全国第1届安全关键技术与应用学术会议论文集(下册)[C];2009年

2 杨占才;张桂英;王红;;面向服务架构的可移植测试程序集开发技术研究[A];2012航空试验测试技术学术交流会论文集[C];2012年

3 张桂英;范利花;杨占才;;面向服务架构的可移植TPS软件实现技术[A];面向航空试验测试技术——2013年航空试验测试技术峰会暨学术交流会论文集[C];2013年

4 王斌;赵云;尹云辉;;面向服务架构的复杂工业过程建模研究[A];2009中国控制与决策会议论文集(1)[C];2009年

5 吴奎;;面向服务架构的通用决策支持平台构想[A];2013第一届中国指挥控制大会论文集[C];2013年

6 康占祥;范利花;张桂英;杨占才;;ATML模型在面向服务架构TPS软件中应用方法研究[A];面向航空试验测试技术——2013年航空试验测试技术峰会暨学术交流会论文集[C];2013年

相关重要报纸文章 前10条

1 张倩;促成Coty并购:SOA如何做“红娘”[N];中国计算机报;2007年

2 张志君;构筑企业生态圈更为重要[N];山西经济日报;2007年

3 蒲公英;现在部署面向服务架构[N];科技日报;2005年

4 ;面向服务架构加快企业创新[N];中国证券报;2005年

5 本报记者 王薇;建立面向服务架构 保险企业创新不断[N];中国保险报;2005年

6 ;分析师建议放弃SOA[N];计算机世界;2009年

7 曲飚;面向目标的知识管理[N];计算机世界;2004年

8 王泽蕴;Rosanne Sac cone:BEA的又一任女CMO[N];中国计算机报;2006年

9 ;如何以标准化的名义复制成功?[N];中国电子报;2004年

10 郭莹;你能Away谁?[N];中国计算机报;2005年

相关博士学位论文 前3条

1 裴科;PRSoC三层服务架构及其URAP协议研究[D];太原理工大学;2010年

2 韦韫;基于面向服务架构的网络化协同制造资源重组优化研究[D];南京理工大学;2011年

3 刘文彬;面向服务架构的旋转机械智能诊断维修系统及工程应用研究[D];北京化工大学;2008年

相关硕士学位论文 前10条

1 房海群;教育云计算服务架构研究与应用实现[D];电子科技大学;2015年

2 李苏璇;基于微服务架构的SaaS应用构建方法研究[D];华南理工大学;2016年

3 方雄飞;基于Mule ESB的山洪预警及洪水推演系统研究与实现[D];华中科技大学;2015年

4 刘美伶;广州煌尚塑料包装有限公司O2O网络销售系统分析与设计[D];江西财经大学;2016年

5 王禹亭;移动云服务架构设计与计算卸载策略研究[D];吉林大学;2017年

6 张彬彬;面向服务架构的应用迁移方法及其应用研究[D];华中科技大学;2006年

7 鲁U,

本文编号:2352121


资料下载
论文发表

本文链接:https://www.wllwen.com/kejilunwen/ruanjiangongchenglunwen/2352121.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户e99cd***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com