springcloud一些组件
springcloud 官网文档略记录下
总体概览
Spring Cloud provides tools for developers to quickly build some of the common patterns in distributed systems (e.g. configuration management, service discovery, circuit breakers, intelligent routing, micro-proxy, control bus, one-time tokens, global locks, leadership election, distributed sessions, cluster state). Coordination of distributed systems leads to boiler plate patterns, and using Spring Cloud developers can quickly stand up services and applications that implement those patterns. They will work well in any distributed environment, including the developer’s own laptop, bare metal data centres, and managed platforms such as Cloud Foundry.
cloud 为开发者提供了一些工具,方便在分布式系统中快速构建一些公共模式(例如 配置管理,服务发现,熔断器,智能路由,微代理,控制总线,one-time tokens,全局锁,领导者选举,分布式session,集群状态)
特征
Spring Cloud focuses on providing good out of box experience for typical use cases and extensibility mechanism to cover others.
-
Distributed/versioned configuration 分布式/分版本的 配置,
-
Service registration and discovery 服务注册与发现
-
Routing 路由
-
Service-to-service calls 服务之间调用
-
Load balancing 负载均衡
-
Circuit Breakers 熔断器
-
Global locks 全局锁
-
Leadership election and cluster state 领导选举和集群状态
-
Distributed messaging 分布式消息
1、spring cloud 阿里巴巴

Nacos:服务注册和发现,分布式配置数据存储
事件驱动:可扩展的事件驱动微服务,连接rocketmq
消息总线:rocketmq 连接节点
分布式事务:seata?
Dubbo RPC:服务间的连接协议
2、spring cloud bus

用轻量的消息中介,来连接分布式系统的节点。可以广播状态变更(例如配置变化)或其他管理指令。
AMQP和Kafka broker的实现,也包含在项目里面。或者,类路径下面的stream binder 也可以作为传输工具 开箱即用。
(work out of the box 开箱即用)
3、spring cloud circuit breaker 断路器
目前支持2种断路器的实现

supplier:你放在断路器的 处理逻辑,
function:断路器阻塞时,要执行的函数(示例代码是跑出throwable时,会触发 fallback函数执行,你也可以不要这个)
4、spring cloud commons

提供2个类库:context,commons
context:提供 spring cloud应用(启动上下文,加密,refresh容器刷新范围?环境端点)applicationcontext的 工具类和特殊服务
commons:在不同的实现(netflix VS consul)中的一组抽象和公共类
4、spring cloud commons
4、spring cloud commons
4、spring cloud commons
4、spring cloud commons
4、spring cloud commons
4、spring cloud commons
=============
待继续查
stream binder
amqp,
netflix VS consul
备注:公众号清汤袭人能找到我,那是随笔的地方

浙公网安备 33010602011771号