framework
framework/spring-cloud/index.md
medium
framework-spring-cloud-index
Spring Cloud Alibaba 微服务栈 — 声明式调用 OpenFeign / 网关路由 / 配置中心 Nacos / 服务注册发现 / 熔断限流五个独立决策点。Use when 拆微服务 / 配网关与配置中心 / 做服务调用与容错时。
子项索引
| 子项 | 一句话 |
|---|---|
| spring-cloud-openfeign skill | OpenFeign 声明式调用 — @FeignClient 接口、超时配置、fallback/fallbackFactory 降级、日志级别、契约接口共享 |
| spring-cloud-gateway-routing skill | Spring Cloud Gateway 网关 — route/predicate/filter 路由、全局过滤器鉴权、限流、CORS 跨域,禁在网关写业务逻辑 |
| spring-cloud-config-center skill | 配置中心 Nacos/Apollo — 配置外置、@RefreshScope 动态刷新、namespace 分环境隔离、敏感配置加密 |
| spring-cloud-service-discovery skill | 服务注册发现 Nacos — 服务注册、健康检查、实例元数据、按服务名调用、优雅上下线 |
| spring-cloud-circuit-breaker skill | 熔断限流 Sentinel/Resilience4j — 熔断规则、限流规则、降级策略、与 OpenFeign 整合 |
Spring Cloud · 微服务栈索引
五个独立决策点,按你正在做的事下钻:
| 你在做什么 | 进哪个 |
|---|---|
| 服务间调用,想用接口声明式 HTTP 客户端 | openfeign |
| 配网关路由、统一鉴权、限流、跨域 | gateway-routing |
| 配置外置、动态刷新、按环境隔离配置 | config-center |
| 服务注册到注册中心、按服务名调用、上下线 | service-discovery |
| 给调用加熔断、限流、降级,防雪崩 | circuit-breaker |