Skip to content

Commit ae20b37

Browse files
author
siu
committed
feat: sentinel rule
1 parent e034a47 commit ae20b37

File tree

20 files changed

+1126
-52
lines changed

20 files changed

+1126
-52
lines changed

README.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
## 简介
5-
myboot是一个基于springboot的项目脚手架
5+
myboot是一个基于Spring Boot/Spring Cloud的项目脚手架/Demo
66
<img src="./LOGO.png" alt="myboot" style="zoom:75%;" />
77

88

@@ -40,18 +40,24 @@ myboot是一个基于springboot的项目脚手架。
4040

4141
![spring-cloud](./assets/spring-cloud.png)
4242

43-
- Eureka 服务发现框架 (使用Nacos代替)
43+
- ~~Eureka 服务注册&发现框架~~ (使用Nacos代替)
4444
- Ribbon 进程内负载均衡器
4545
- Open Feign 服务调用映射
46-
- Hystrix 服务降级熔断器
46+
- ~~Hystrix 服务降级熔断器~~(使用Sentinel代替)
4747
- Zuul 微服务网关
4848
- Config 微服务统一配置中心 (使用Nacos代替)
49-
- Bus 消息总线
50-
- Nacos(Spring Cloud Alibaba)
51-
- Nacos = Spring Cloud Eureka + Spring Cloud Config
52-
- Nacos 可以与 Spring, Spring Boot, Spring Cloud 集成,并能代替 Eureka, Config。
53-
- 通过 Nacos Server 和 spring-cloud-starter-alibaba-nacos-config 实现配置的动态变更。
54-
- 通过 Nacos Server 和 spring-cloud-starter-alibaba-nacos-discovery 实现服务的注册与发现
49+
- ~~Bus 消息总线~~
50+
- **集成Spring Cloud Alibaba 补充相关功能:**
51+
- 服务限流降级:使用 Sentinel 进行流量控制,熔断降级以及系统保护等多个维度保护服务稳定性(**完成**
52+
- 服务注册与发现:使用 Nacos 适配 Spring Cloud 服务注册与发现标准,默认集成了 Ribbon 这个客户端负载均衡组件(**完成**
53+
- 通过 Nacos Server 和 spring-cloud-starter-alibaba-nacos-discovery 实现服务的注册与发现
54+
- 分布式配置管理:以 Nacos 作为数据存储支持分布式系统中的外部化配置,配置更改时自动刷新(**完成**
55+
- 通过 Nacos Server 和 spring-cloud-starter-alibaba-nacos-config 实现配置的动态变更。
56+
- 事件驱动:使用 Spring Cloud Stream RocketMQ Binder 来构建事件驱动的微服务实例(**进行中**
57+
- 消息总线:使用 Spring Cloud Bus RocketMQ 连接分布式系统中的各个节点(**进行中**
58+
- 分布式事务:使用 Seata 高效并且对业务零侵入地解决分布式事务问题(**进行中**
59+
- Dubbo RPC:扩展 Spring Cloud 服务调用协议,可使用 Spring Cloud 客户端调用 Dubbo 服务(未计划集成)
60+
- 阿里云 OSS 集成: 使用阿里云 OSS 服务集成 Spring Resource 资源(未计划集成)
5561

5662
- 其它技术栈首选Spring 内成熟的技术
5763

@@ -115,9 +121,10 @@ myboot是一个基于springboot的项目脚手架。
115121

116122
TODO:
117123
1. 引入Spring Coud
118-
2. 消息队列选型
119-
3. 前端技术选型 Vue/React
120-
4. 分库分表选型
124+
2. 集成 Spring Coud Alibaba
125+
3. 消息队列选型
126+
4. 前端技术选型 Vue/React
127+
5. 分库分表选型
121128

122129

123130
## Feedback

assets/it_roadmap.png

661 KB
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
version: '2'
2+
3+
services:
4+
apollo-quick-start:
5+
image: nobodyiam/apollo-quick-start
6+
container_name: apollo-quick-start
7+
depends_on:
8+
- apollo-db
9+
ports:
10+
- "8080:8080"
11+
- "8070:8070"
12+
links:
13+
- apollo-db
14+
15+
apollo-db:
16+
image: mysql:5.7
17+
container_name: apollo-db
18+
environment:
19+
TZ: Asia/Shanghai
20+
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
21+
depends_on:
22+
- apollo-dbdata
23+
ports:
24+
- "13306:3306"
25+
volumes:
26+
- ./sql:/docker-entrypoint-initdb.d
27+
volumes_from:
28+
- apollo-dbdata
29+
30+
apollo-dbdata:
31+
image: alpine:latest
32+
container_name: apollo-dbdata
33+
volumes:
34+
- /var/lib/mysql

bin/apollo/docker-quick-start/sql/apolloconfigdb.sql

Lines changed: 430 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)