本文已被:浏览 1492次 下载 2897次
Received:January 14, 2016 Revised:February 29, 2016
Received:January 14, 2016 Revised:February 29, 2016
中文摘要: 采用组件化方式,可以使应用系统的结构更加清晰,简化大型系统开发和部署的难度. 然而传统的依靠JAR包或OSGI模块实现组件化的方式具有成本高、系统扩展性差和资源浪费等问题. 针对这些问题,本文实现了一种基于微服务的应用框架,通过将业务功能分解到各个离散的微服务中实现对系统功能组件的解耦. 基于该框架,开发人员只需要关注微服务内部业务功能的开发,微服务之间的注册、发现、调用和监控由应用框架完成. 基于微服务的应用框架的使用可以简化系统开发难度,降低代码修改、测试、打包以及部署的成本和风险;功能模块按需扩展,提升大型复杂业务系统运行期动态扩展能力;将故障隔离在微服务内部,提升系统的容错性.
Abstract:Componentization can make the structure of the application system more clearly, simplify the development, deployment and upgrades of large-scale systems. However, the traditional methods of componentization have some drawbacks like high cost, poor system scalability,thewaste of resources and so on. In order to solve the above problems, an application framework based on microservice is realized to functionally decompose the application into a set of collaborating services. Using this framework, developers just need to focus on the business function development, and service registration, service discovery, access and monitoring is done by the framework. This framework can simplify the development; reduce costs and risks of code changes, testing, packaging and deployment; enhance capacity of dynamic need expansion; improve fault inside isolation.,enhance the fault tolerance of the system.
文章编号: 中图分类号: 文献标志码:
基金项目:
Author Name | Affiliation |
ZHANG Jing | Beijing China Power Information Technology Co. Ltd, Beijing 100192, China |
HUANG Xiao-Feng | HydroChina International Engineering Co. Ltd., Beijing 100101, China |
Author Name | Affiliation |
ZHANG Jing | Beijing China Power Information Technology Co. Ltd, Beijing 100192, China |
HUANG Xiao-Feng | HydroChina International Engineering Co. Ltd., Beijing 100101, China |
引用文本:
张晶,黄小锋.一种基于微服务的应用框架.计算机系统应用,2016,25(9):265-270
ZHANG Jing,HUANG Xiao-Feng.Application Framework Based on Microservice.COMPUTER SYSTEMS APPLICATIONS,2016,25(9):265-270
张晶,黄小锋.一种基于微服务的应用框架.计算机系统应用,2016,25(9):265-270
ZHANG Jing,HUANG Xiao-Feng.Application Framework Based on Microservice.COMPUTER SYSTEMS APPLICATIONS,2016,25(9):265-270