
Spring Cloud
文章平均质量分 79
Spring Cloud 基础
Demo_Null
学渣的自我修养
展开
-
Spring Cloud Alibaba 系列之 Seata 分布式事务 demo
我们只需要使用一个 @GlobalTransactional 注解在业务方法上就可以解决分布式事务原创 2020-12-03 21:32:37 · 702 阅读 · 0 评论 -
Spring Cloud Alibaba 系列之 Seata 介绍
Seata 是一款开源的分布式事务解决方案,致力于在微服务架构下提供高性能和简单易用的分布式事务服务。Seata 将为用户提供了 AT、TCC、SAGA 和 XA 事务模式,为用户打造一站式的分布式解决方案。原创 2020-12-02 14:03:49 · 831 阅读 · 1 评论 -
Spring Cloud Alibaba 系列之 Sentinel 热点 key 与系统规则
Spring Cloud Alibaba Sentinel 中的热点参数限流与系统自适应限流原创 2020-12-01 21:15:47 · 342 阅读 · 0 评论 -
Spring Cloud Alibaba 系列之 Sentinel @SentinelResource 注解
Sentinel 提供了 @SentinelResource 注解用于定义资源,并提供了 AspectJ 的扩展用于自动定义资源、处理 BlockException 等。原创 2020-12-01 19:55:33 · 599 阅读 · 0 评论 -
Spring Cloud Alibaba 系列之 Sentinel 熔断降级
现代微服务架构都是分布式的,由非常多的服务组成。不同服务之间相互调用,组成复杂的调用链路。以上的问题在链路调用中会产生放大的效果。复杂链路上的某一环不稳定,就可能会层层级联,最终导致整个链路都不可用。因此我们需要对不稳定的弱依赖服务调用进行熔断降级,暂时切断不稳定调用,避免局部不稳定因素导致整体的雪崩。原创 2020-11-30 19:57:01 · 441 阅读 · 0 评论 -
Spring Cloud Alibaba 系列之 Sentinel 流量控制
流量控制(flow control),其原理是监控应用流量的 QPS 或并发线程数等指标,当达到指定的阈值时对流量进行控制,以避免被瞬时的流量高峰冲垮,从而保障应用的高可用性。原创 2020-11-29 21:04:55 · 455 阅读 · 0 评论 -
Spring Cloud Alibaba 系列之 Sentinel 介绍
随着微服务的流行,服务和服务之间的稳定性变得越来越重要。Sentinel 以流量为切入点,从流量控制、熔断降级、系统负载保护等多个维度保护服务的稳定性。原创 2020-11-20 19:47:07 · 438 阅读 · 0 评论 -
Spring Cloud Alibaba 系列之 Nacos 集群
开源的时候推荐用户把所有服务列表放到一个 vip 下面,然后挂到一个域名下面原创 2020-11-20 00:02:00 · 425 阅读 · 1 评论 -
Spring Cloud Alibaba 系列之 Nacos 持久化
在 0.7 版本之前,在单机模式时 Nacos 使用 derby 嵌入式数据库实现数据的存储,不方便观察数据存储的基本情况。0.7 版本增加了支持 MySQL 数据源能力。原创 2020-11-19 22:10:07 · 417 阅读 · 0 评论 -
Spring Cloud Alibaba 系列之 Nacos 配置中心
Nacos 除了通过 Nacos Server 和 spring-cloud-starter-alibaba-nacos-discovery 实现服务的注册与发现以外,还可以通过 Nacos Server 和 spring-cloud-starter-alibaba-nacos-config 实现配置的动态变更。原创 2020-11-19 20:12:51 · 246 阅读 · 0 评论 -
Spring Cloud Alibaba 系列之 Nacos 注册中心
Spring Cloud Alibaba Nacos Discovery 通过一些简单的注解,快速来注册一个服务,并使用经过双十一考验的 Nacos 组件来作为大规模分布式系统的服务注册中心。原创 2020-11-18 23:44:18 · 466 阅读 · 1 评论 -
Spring Cloud Alibaba 系列之 Nacos 介绍
Nacos 前四个字母分别为 Naming 和 Configuration 的前两个字母,最后的 s 为 Service。Nacos 致力于帮助发现、配置和管理微服务原创 2020-11-18 21:41:35 · 319 阅读 · 0 评论 -
Spring Cloud 系列之链路监控 Sleuth - Zipkin
Spring Cloud Sleuth 为 Spring Cloud 实现了分布式跟踪解决方案,它大量借用了 Google Dapper、Twitter Zipkin 和 Apache HTrace 的设计。原创 2020-11-18 20:09:53 · 304 阅读 · 0 评论 -
Spring Cloud 系列之消息驱动 Stream
Spring Cloud Stream 提供了一种解耦合的方式。通过定义绑定器作为中间层,完美地实现了应用程序与消息中间件细节之间的隔离。Stream 对消息中间件的进一步封装,可以做到代码层面对中间件的无感知,甚至于动态的切换中间件(RabbitMQ 切换为 Kafka),使得微服务开发的高度解耦,服务可以关注更多自己的业务流程。原创 2020-11-17 22:49:58 · 379 阅读 · 1 评论 -
Spring Cloud 系列之消息总线 Bus
使用 Spring Cloud Bus 来让 Spring Cloud Config 通知客户端更新配置原创 2020-11-11 22:55:05 · 387 阅读 · 1 评论 -
Spring Cloud 系列之配置中心 Config
微服务中每一个服务都已一个配置文件,配置文件中存在众多重复的配置,造成了冗余的同时维护也不方便,有了配置中心就可以共用配置。原创 2020-11-10 23:15:12 · 430 阅读 · 0 评论 -
Spring Cloud 系列之服务网关 Gateway
Spring Cloud Gateway 是 Spring Cloud 体系的第二代网关组件,基于 Spring 5.0 的新特性 WebFlux 进行开发,底层网络通信框架使用的是 Netty,所以其吞吐量高、性能强劲,取代了第一代的网关组件 Zuul。原创 2020-11-10 20:47:02 · 834 阅读 · 1 评论 -
Spring Cloud 系列之服务网关 Zuul
虽然 Zuul 已经退出主流,但是很多老项目依然使用这个技术,所以我们需要简单的来看看他怎么使用。原创 2020-11-09 20:37:34 · 289 阅读 · 0 评论 -
Spring Cloud 系列之熔断器 Hystrix
Spring Cloud 中使用 Hystrix 豪猪哥做熔断器,介绍了服务降级、服务熔断等原创 2020-11-06 21:59:28 · 438 阅读 · 0 评论 -
Spring Cloud 系列之服务调用 OpenFeign
Spring Cloud 中 OpenFeign 的使用原创 2020-11-06 01:46:38 · 422 阅读 · 0 评论 -
Spring Cloud 系列之负载均衡 Ribbon
Spring Cloud 中使用 Ribbon 做负载均衡;介绍 Ribbon、RestTemplata、Ribbon 的使用以及负载均衡策略;手撸负载均衡策略。原创 2020-11-05 23:40:13 · 319 阅读 · 0 评论 -
Spring Cloud 系列之注册中心 Consul
Spring Cloud 中使用 cousul 做注册中心,介绍了 consul 在 windows 与 linux 中的安装以及使用等原创 2020-11-03 22:59:48 · 314 阅读 · 0 评论 -
Spring Cloud 系列之注册中心 Zookeeper
Spring Cloud 中使用 Zookeeper 作为注册中心原创 2020-11-03 22:58:50 · 232 阅读 · 0 评论 -
Spring Cloud 系列之注册中心 Eureka
在 H 版 Spring Cloud 中注册中心 Eureka 的使用原创 2020-11-02 22:33:43 · 222 阅读 · 0 评论 -
Spring Cloud 系列之初识 Cloud
介绍系统架构演变、服务调用方式、Spring Cloud 停更引发的“升级血案”等内容原创 2020-10-28 22:03:52 · 406 阅读 · 0 评论