摘要
相对于传统单块架构,微服务框架具有技术选型灵活、独立按需扩展、可用性高等优点,更适合当前互联网时代需求.但微服务架构的应用也会引入新的问题,如跨进程通讯、服务注册发现、分布式Session管理等.本文在对传统框架和微服务框架进行分析比较的基础上,给出了微服务框架的一种实现方案.该方案设计了微服务框架的功能架构,对微服务框架引入的关键问题给出了解决方案.采用该实现方案进行业务系统开发,开发人员只需要关注微服务内部业务功能的开发,微服务之间的注册、发现、监控和Session管理由微服务框架完成,简化了系统开发的难度,提高开发效率.
Compared with traditional monolithic architecture, microservice architecture has many advantages, such as flexible technology selection, independent scalability, high availability and so on, and is more suitable for the current needs of the Internet age. But microservice architecture also introduces new problems, such as cross-process communication, service registration, service discovery, and distributed session management. On the basis of analysis and comparison between the traditional framework and microservice framework, this paper shows one implementation method of microservice framework. First, we design a scheme of microservices architecture framework and the functional framework, and then give the solutions of some key issues that microservice architecture introduces. With this scheme, developers only need to focus on the development of business functions, service registration, discovery, monitoring and session management provided by the framework to simplify the development and improve development effectiveness.
出处
《计算机系统应用》
2017年第4期82-86,共5页
Computer Systems & Applications
关键词
微服务框架
服务注册
服务发现
Session管理
microservice architecture
service registration
service discover
session management