分布式事务概览

分布式事务概览 分布式理论 前置理论知识: CAP C 强一致性 主节点写入新的数据,必须能从从节点读到最新数据,否则错误 A 可用性 保证每个服务尽可能都能响应结果 P 分区容忍性 正常情况下,服务节点之间通信是正常的,可能因为网络原因,节点之间通信失败,将整个服务分成了多个区,仍然可以保证整个服务的运行 BASE basically Available 基本可用 系统出现故障,保证核心功能可用 Soft state 软状态 出现一个中间状态,表示动作进行中 eventually consistent 最终一致性 2pc 两阶段提交(协议) 主要角色 事务管理器(协调者 tm) ...

July 19, 2023 · 4 min

openFeign超时配置

openFeign超时时间配置 一开始我把 feign和openFeign搞混了,所以还是先记录下下面三种feign的区别吧 <!-- https://mvnrepository.com/artifact/com.netflix.feign/feign-core --> <dependency> <groupId>com.netflix.feign</groupId> <artifactId>feign-core</artifactId> <version>8.18.0</version> </dependency>22.MVCC0.5.1</version> </dependency> <!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-openfeign --> <!-- https://spring.io/projects/spring-cloud-openfeign --> <!-- https://github.com/spring-cloud/spring-cloud-openfeign --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> <version>2.1.2.RELEASE</version> </dependency> com.netflix.feign是Netflix 公司开源产品,2018年宣布停止维护。 改由开源社区进行维护,修改了组织归属为OpenFeign,并调整代码仓库到OpenFeign/feign(可以简单理解为换了个仓库地址,换了一批人继续更新维护)。 ...

October 8, 2021 · 3 min
总访问量 总访客数