使用SpringCloudConfig实现集中配置并发布为Docker微服务.pdf
《使用SpringCloudConfig实现集中配置并发布为Docker微服务.pdf》由会员分享,可在线阅读,更多相关《使用SpringCloudConfig实现集中配置并发布为Docker微服务.pdf(23页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、3/2/20171使用Spring Cloud Config实现集中配置并发布为Docker微服务2017 年 2月一、Spring Cloud 用来解决什么问题Spring Cloud 是 Pivotal提供的用于简化分布式系统构建的工具集,开源软件。Spring Cloud 为开发人员提供了工具,快速建立分布式系统中的一些常见的模式(例如配置管理,服务发现,断路器,智能路由,微代理,控制总线,一次性令牌,全局锁,领导选举,分布式会话,集群状态)。Spring Cloud基于 Spring Boot等工具集,Spring有一套解决方案。3/2/20172一、Spring Cloud 用来解决
2、什么问题?Centralized external configurationmanagementbacked by agit repository.The configurationresources map directly toSpring Environmentbut could be used by non Spring applicationsif desired.Spring Cloud Config?Integrationwith various Netflix OSScomponents(Eureka,Hystrix,Zuul,Archaius,etc.).Spring Cl
3、oud Netflix?An event bus for linkingservices and service instances togetherwith distributedmessaging.Useful for propagatingstate changes across a cluster(e.g.config change events).Spring Cloud Bus?Integratesyour applicationwith Pivotal Cloudfoundry.Provides aservice discovery implementationand also
4、makes iteasy to implementSSOand OAuth2 protectedresources,and also to create a Cloudfoundryservice broker.Spring Cloud for Cloud Foundry?Provides astartingpoint for building a service brokerthat manages a Cloud Foundry managed service.Spring CloudCloud Foundry ServiceBroker?Leadership election and c
5、ommonstateful patterns with an abstractionand implementationfor Zookeeper,Redis,Hazelcast,Consul.Spring Cloud Cluster?Service discovery and configurationmanagementwith Hashicorp Consul.Spring Cloud Consul?Provides support for load balanced OAuth2 rest client and authenticationheader relays in aZuul
6、proxy.Spring CloudSecurity?Distributedtracing for Spring Cloud applications,compatiblewith Zipkin,HTrace and log based(e.g.ELK)tracing.Spring Cloud Sleuth一、Spring Cloud 用来解决什么问题?A cloud native orchestration service for composable microservice applications on modern runtimes.Easy to useDSL,drag anddr
7、op GUI,and REST APIstogether simplifies the overall orchestration of microservice based data pipelines.Spring Cloud DataFlow?A lightweight event driven microservices framework to quickly build applications that canconnect toexternal systems.Simpledeclarative model to sendand receive messages using A
8、pache Kafka or RabbitMQ between Spring Boot apps.SpringCloud Stream?Spring CloudStream App Starters areSpringBoot based SpringIntegration applications that provide integration with external systems.Spring Cloud StreamApp Starters?A short lived microservices framework to quickly build applications th
9、at perform finite amounts of data processing.Simpledeclarative for addingbothfunctional and non functional features to Spring Boot apps.Spring Cloud Task?Spring CloudTask App Starters are SpringBoot applications that may be anyprocess including Spring Batch jobs that do not runforever,and theyend/st
10、op after a finite period ofdata processing.SpringCloud TaskApp Starters?Service discovery and configuration management with Apache Zookeeper.SpringCloud Zookeeper?Easyintegration with hosted Amazon Web Services.It offers a convenient wayto interact with AWSprovided services using well known Springid
11、ioms andAPIs,such asthe messagingor caching API.Developers canbuild their application around the hosted serviceswithouthaving to care about infrastructureor maintenance.Spring Cloudfor Amazon Web Services?Makes it easyfor PaaSapplications in a variety ofplatforms to connect to backend serviceslike d
12、atabases andmessagebrokers(the project formerlyknown as SpringCloud).SpringCloud Connectors?Spring Boot style starter projects to easedependency management for consumers of SpringCloud.(Discontinued asa project andmerged with the otherprojects afterAngel.SR2.)Spring Cloud Starters?Spring Boot CLI pl
13、ugin for creating Spring Cloudcomponent applications quickly in GroovySpring Cloud CLI3/2/20173一、Spring Cloud 用来解决什么问题提供集中式的外部配置管理服务,基于GIT 配置库。配置资源可以直接映射到Spring的“Environment”,也能给非Spring程序用。一、Spring Cloud 用来解决什么问题配置与程序分离3/2/20174二、运行 Demohttp:/spring.io/guides/gs/centralized-configuration/http:/cloud
14、.spring.io/spring-cloud-config/二、运行 Demo3/2/20175configuration-service:服务端,是一个Web服务器,从GIT 获得配置信息configuration-client:客户端,也是一个Web服务器,从server端获取配置信息二、运行 Demoapplication.properties中的配置:server.port,端口号spring.cloud.config.server.git.uri,Git 配置库的地址二、运行 Demo3/2/20176POM 配置:基于 Spring Boot启动Spring cloud conf
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 使用 SpringCloudConfig 实现 集中 配置 发布 Docker 微服
限制150内