- 配置中心:默认采用Spring Cloud Config,亦可使用Spring Cloud Consul、Spring Cloud Alibaba Nacos、Apollo代替。
- 服务发现:默认采用Netflix Eureka,亦可使用Spring Cloud Consul、Spring Cloud ZooKeeper、etcd、Nacos等代替。
- 服务网关:默认采用Netflix Zuul,亦可使用Spring Cloud Gateway代替。
- 服务治理:默认采用Netflix Hystrix,亦可使用Sentinel、Resilience4j代替。
- 进程内负载均衡:默认采用Netfilix Ribbon,亦可使用Spring Cloud Loadbalancer代替。
- 声明式HTTP客户端:默认采用Spring Cloud OpenFeign。声明式的HTTP客户端其实没有找替代品的必要性,如果需要,可考虑Retrofit,或者使用RestTemplete乃至于更底层的OkHTTP、HTTPClient以命令式编程来访问,多写一些代码而已了。
- 链路监控:PinPint,亦可使用SkyWalking
- 日志框架:logback,亦可使用log4j
- 分布式事务:Seata,亦可使用
- ORM:JPA,hibernate,mybatis(mybatis-plus,tkMapper)
SpringCloud微服务架构
最新推荐文章于 2024-09-14 23:45:16 发布