摘要: 利用redis实现 分布式锁 1.给需要添加锁的地方添加锁 @GetMapping("/get") public String test(HttpServletRequest request) throws InterruptedException { System.out.println("beg 阅读全文
posted @ 2023-05-16 18:55 goblinn 阅读(57) 评论(1) 推荐(0) 编辑
摘要: 使用rocket mq实现分布式事务 发送半消息 -> 执行本地事务 -> 回查本地事务执行状态 -> 第二个服务消费事务消息 1.参照下面链接去安装rocketmq https://blog.csdn.net/weixin_43464076/article/details/127766159 ro 阅读全文
posted @ 2023-05-16 18:28 goblinn 阅读(65) 评论(0) 推荐(0) 编辑