alibaba
Sentinel 流量控制
https://github.com/alibaba/Sentinel/wiki/%E4%BB%8B%E7%BB%8D
doubbo 服务治理
https://dubbo.apache.org
https://github.com/apache/dubbo-spring-boot-project/blob/master/README_CN.md
apollo 配置中心
https://github.com/ctripcorp/apollo
nacos 注册中心
https://github.com/alibaba/nacos
zookeeper:强一至性,当领导节点宕机时整个集群不可使用。l例如:zookeeper集群需要重新选举,而此时服务需要来读取可用服务,是不可用的。 影响到了服务的可用性,zk采用心跳来判断是可用
naocs:弥补zk的缺点
seata分布式事物
https://seata.io/zh-cn/
不适合高并发系统
rocketmq消息队列
http://rocketmq.apache.org/docs/quick-start/
运维监控
https://github.com/csgirl562857639/spring-boot-2-metrics-sample
依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
<version>1.5.1</version>
</dependency>
注册
@Bean
MeterRegistryCustomizer<MeterRegistry> configurer(@Value("${spring.application.name}") String applicationName){
return registry -> registry.config().commonTags("application", applicationName);
}
配置:
management.endpoints.web.exposure.include=*
management.metrics.tags.application=${spring.application.name}