nav emailalert searchbtn searchbox tablepage yinyongbenwen piczone journalimg journalInfo journalinfonormal searchdiv searchzone qikanlogo popupnotification paper paperNew
2019, 06, v.35;No.314 98-101
基于Spring Cloud和Docker的分布式微服务架构设计
基金项目(Foundation):
邮箱(Email):
DOI:
发布时间: 2019-06-14
出版时间: 2019-06-14
移动端阅读
摘要:

近年来,微服务架构是当前最流行的分布式系统类型之一,相比传统单体架构它解决了数据、服务呈爆炸式增长带来的冲击问题。以构建一个天气预报分布式微服务系统为例,利用Spring Cloud框架将系统垂直切分为四个独立的业务服务:城市数据API微服务、天气数据采集微服务、天气数据API微服务和天气预报微服务。系统集成Eureka做服务发现,使用Zuul做路由网关,结合Hystrix熔断机制提高了系统的容错性,并使用Docker容器快速独立部署所有微服务,实现了开发、测试、部署运维的一体化。

Abstract:

In recent years, as one of the most popular distributed system types, the microservice architecture has solved the problem of explosive growth of data and services compared to the traditional singleton architecture. Taking the construction of a weather forecast distributed microservice system as an example, this paper uses the Spring Cloud framework to divide the system vertically into four separate business services: the city data API microservice, the weather data collection microservice, the weather data API microservice, and the weather forecast microservice. The system integrates Eureka for service discovering, uses Zuul as a routing gateway, improves the fault tolerance of the system in conjunction with the Hystrix zapping mechanism, and uses the Docker container to quickly and independently deploy all services, it realizes the integration of development, tests, deployment operation and maintenance.

参考文献

[1] 孙海洪.微服务架构和容器技术应用[J].金融电子化,2016(5):63-64.

[2] 王方旭.基于Spring Cloud实现业务系统微服务化的设计与实现[J].电子技术与软件工程,2018(8):60-61.

[3] 高礼,高昕.Docker技术在软件开发过程中的应用研究[J].软件,2016,37(3):110-113.

[4] 马雄.基于微服务架构的系统设计与开发[D].南京:南京邮电大学,2017.

[5] Marc Adler.Microservices Are the New Building Blocks of Financial Technology[J].Wilmott,2017 (87):50-51.

基本信息:

中图分类号:TP393.09

引用信息:

[1]黄强文,曾丹.基于Spring Cloud和Docker的分布式微服务架构设计[J].微型电脑应用,2019,35(06):98-101.

发布时间:

2019-06-14

出版时间:

2019-06-14

检 索 高级检索

引用

GB/T 7714-2015 格式引文
MLA格式引文
APA格式引文