![](https://img-blog.csdnimg.cn/20200729201329493.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
Spring Cloud
文章平均质量分 85
SpringCloud H版+SpringCloud alibaba,包括Eureka、Ribbon、OpenFeign、Hystrix、Config、Consul、Gateway、Bus、Stream、Sleuth、zipkin和阿里的Nacos、Sentinel、Seata等技术
zzkeung
Action Speak Louder Than Words
展开
-
Spring Cloud(二十一)Seata 分布式事务
1.1dd原创 2020-08-16 02:44:44 · 3170 阅读 · 0 评论 -
Spring Cloud(二十)Sentinel 流量控制和服务降级
1.dd原创 2020-08-14 02:22:01 · 3763 阅读 · 0 评论 -
Spring Cloud 总概述(技术目录、源码)
技术目录Spring Cloud(一)微服务介绍Spring Cloud(二)版本和技术选型Spring Cloud(三)搭建父工程项目Spring Cloud(四)搭建 module 子项目Spring Cloud(五)Eureka 服务注册与发现Spring Cloud(六)Zookeeper 代替 EurekaSpring Cloud(七)Consul 代替 Eureka源码https://github.com/akeung/springclouddem..原创 2020-08-16 02:46:04 · 2752 阅读 · 0 评论 -
Spring Cloud(十八)Spring Cloud Alibaba 整合
Table of Contents1.Spring Cloud Alibaba 介绍2.版本说明3.依赖管理1.Spring Cloud Alibaba 介绍https://spring.io/projects/spring-cloud-alibabahttps://github.com/alibaba/spring-cloud-alibabahttps://github.com/alibaba/spring-cloud-alibaba/blob/master/README-zh转载 2020-08-14 02:21:09 · 215 阅读 · 0 评论 -
Spring Cloud(十九)Nacos 服务注册和配置中心
Table of Contents1.Nacos 介绍2.Nacos 安装3.Nacos 服务注册与发现1.提供者alibaba-provider89012.提供者alibaba-provider89023.消费者alibaba-consumer89034.Nacos 配置中心1.alibaba-config33772.DataId 格式3.Group 配置4.Namespace 配置5.Nacos 集群1.Nacos 介绍官网:ht...原创 2020-08-14 02:21:24 · 1809 阅读 · 0 评论 -
Spring Cloud(十七)Sleuth + Zipkin 分布式请求链路追踪
Table of Contents1.介绍2.Zipkin安装3.Sleuth + Zipkin 链路分析1.介绍https://spring.io/projects/spring-cloud-sleuth随着系统规模越来越大,微服务之间调用关系变得错综复杂,一条调用链路中可能调用多个微服务,任何一个微服务不可用都可能造整个调用过程失败。Spring Cloud Sleuth为 Spring Cloud 实现了分布式跟踪解决方案,可以跟踪调用链路,分析链路中每个节点的执行情况。原创 2020-08-13 09:16:42 · 1484 阅读 · 0 评论 -
Spring Cloud(十六)Stream 消息驱动
Table of Contents1.331.Stream 介绍https://spring.io/projects/spring-cloud-stream Spring Cloud Stream 是一个用来为微服务应用构建消息驱动能力的框架。它可以基于 Spring Boot 来创建独立的、可用于生产的 Spring 应用程序。Spring Cloud Stream 为一些供应商的消息中间件产品提供了个性化的自动化配置实现,并引入了发布-订阅、消费组、分区这三个核心概念。通...原创 2020-08-13 00:56:41 · 207 阅读 · 1 评论 -
Spring Cloud(十五)Bus 消息总线
Table of Contents1.Bus 介绍1.Bus 介绍https://spring.io/projects/spring-cloud-busSpring Cloud Bus将轻量级消息代理程序链接到分布式系统的节点。然后可以将其用于广播状态更改(例如,配置更改)或其他管理指令。支持两种消息代理:AMQP和Kafka。另外,在类路径上找到的任何Spring Cloud Stream绑定程序都可以作为传输工具使用。总线在微服务架构的系统中,通常会使用轻量级的消息代理来构建一个共原创 2020-08-13 00:56:18 · 157 阅读 · 0 评论 -
Spring Cloud(十四)Config 分布式配置中心
Table of Contents1.Config介绍2.github 上存放配置文件3.服务端构建1.pom.xml中添加依赖2.代码实现3.访问规则4.客户端构建1.pom.xml中添加依赖2.代码实现3.动态刷新配置现1.Config介绍https://spring.io/projects/spring-cloud-config#overviewhttps://github.com/akeung/springclouddemo-conf...原创 2020-08-13 00:55:45 · 159 阅读 · 0 评论 -
Spring Cloud(十二)Gateway 服务网关
Table of Contents1.Gateway介绍2.pom.xml中添加依赖3.代码实现4.Predicate Factory5.Filter1.Gateway介绍https://docs.spring.io/spring-cloud-gateway/docs/2.2.4.RELEASE/reference/html/ 在Spring生态系统之上构建的API网关,包括:Spring 5,Spring Boot 2和Project Reactor。...原创 2020-08-13 00:55:19 · 174 阅读 · 0 评论 -
Spring Cloud(十三)Zuul 服务网关
1.Zuul介绍原创 2020-08-13 00:55:31 · 127 阅读 · 0 评论 -
Spring Cloud(十一)Hystrix 服务降级 、熔断
Table of Contents1.Hystrix介绍2.pom.xml中添加依赖3.服务降级降级在提供者(provider-hystrix-payment8007)降级在消费者(consumer-feign-hystrix-order80)全局服务降级4.服务熔断5.工作流程6.服务监控1.Hystrix介绍https://github.com/Netflix/Hystrix/wiki 在分布式环境中,许多服务依赖项中的一些必...原创 2020-08-13 00:55:02 · 237 阅读 · 0 评论 -
Spring Cloud(十)OpenFeign 服务调用
Table of Contents1.OpenFeign介绍2.OpenFeign作用3.OpenFeign和Feign区别4.pom.xml中添加依赖5.配置yml文件6.代码实现7.OpenFeign客户端超时和重试8.OpenFeign日志增强1.OpenFeign介绍https://docs.spring.io/spring-cloud-openfeign/docs/2.2.4.RELEASE/reference/html/ Feign是...原创 2020-08-13 00:54:28 · 820 阅读 · 0 评论 -
Spring Cloud(九)Ribbon 服务调用
Table of Contents1.Ribbon介绍2.pom.xml中添加依赖3.@LoadBalanced 开启负载均衡4.Ribbon负载规则5.自定义负载的算法CAS+自旋锁1.Ribbon介绍https://github.com/Netflix/ribbon Spring Cloud Ribbon是一个基于HTTP和TCP的客户端负载均衡工具,它基于Netflix Ribbon实现。通过Spring Cloud的封装,可以让我们轻松地将面向服务...原创 2020-08-13 00:53:45 · 267 阅读 · 0 评论 -
Spring Cloud(八)Eureka、Consul、Zookeeper 比较
CAP理论作为分布式系统的基础理论,它描述的是一个分布式系统在以下三个特性中:一致性(Consistency) 可用性(Availability) 分区容错性(Partition tolerance)最多满足其中的两个特性。也就是下图所描述的。分布式系统要么满足CA,要么CP,要么AP。无法同时满足CAP。...原创 2020-08-13 00:53:21 · 98 阅读 · 0 评论 -
Spring Cloud(七)Consul 代替 Eureka
Table of Contents1.Consul介绍2.安装3.pom.xml中添加依赖4.配置yml文件5.主启动类6.测试验证官网:https://www.consul.io/introspring:https://spring.io/projects/spring-cloud-consul1.Consul介绍Consul是一种服务网格解决方案,提供具有服务发现,配置和分段功能的全功能控制平面。这些功能可以根据需要单独使用,也可以一起使用以构建完整的服务网格。C原创 2020-08-12 18:55:27 · 186 阅读 · 0 评论 -
Spring Cloud(六)Zookeeper 代替 Eureka
Table of Contents1.dd1.dd原创 2020-08-12 18:55:04 · 129 阅读 · 0 评论 -
Spring Cloud(五)Eureka 服务注册与发现
Table of Contents1.Eureka VS Zookeeper2.Eureka 组件3.Eureka 服务搭建4.服务模块入驻Eureka5.Eureka 服务集群搭建6.服务模块入驻Eureka集群7.服务模块集群入驻Eureka集群8.Eureka 服务发现 Discovery9.Eureka 自我保护机制1.Eureka VS Zookeeper1. Eureka保证APEureka服务器节点之间是对等的,只要有一个节...原创 2020-08-12 18:54:34 · 2731 阅读 · 0 评论 -
Spring Cloud(四)搭建 module 子项目
Table of Contents1.建module2.改pom3.写yml4.主启动1.建module父pom会自动增加 module2.改pom<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSche..原创 2020-08-12 18:53:58 · 409 阅读 · 0 评论 -
Spring Cloud(三)搭建父工程项目
Table of Contentsstep 1 new projectstep 2 聚合总父工程名称step 3 Maven选择step 4工程名称step 5字符编码step 6注解失效激活step 7java 8 编译step 8File Type过滤step 9删除src 和 pom.xml修改githubstep 1 new projectstep 2 聚合总父工程名称step 3 Maven选择step 4工程...原创 2020-08-12 18:53:35 · 490 阅读 · 0 评论 -
Spring Cloud(二)版本和技术选型
1.版本选择https://spring.io/projects/spring-cloudhttps://start.spring.io/actuator/info2.技术选型原创 2020-08-12 18:52:56 · 151 阅读 · 0 评论 -
Spring Cloud(一)微服务介绍
https://martinfowler.com/articles/microservices.html目录微服务架构的九大特性 特性一:“组件化”与“多服务” 特性二:围绕“业务功能”组织团队 特性三:“做产品”而不是“做项目” 特性四:“智能端点”与“傻瓜管道” 特性五:“去中心化”地治理技术 特性六:“去中心化”地管理数据 特性七:“基础设施”自动化 特性八:“容错”设计 特性九:“演进式”设计未来的方向是“微服务”吗...原创 2020-08-12 18:52:15 · 119 阅读 · 0 评论