Articles
7
Tags
0
Categories
0
首页
时间轴
标签
分类
娱乐
Music
Movie
友链
关于
LST's blog
待办事项工具
首页
时间轴
标签
分类
娱乐
Music
Movie
友链
关于
待办事项工具
Created
2025-03-31
|
Updated
2025-03-31
|
Post Views:
重要且紧急
重要但不紧急
不重要但紧急
不重要且不紧急
重要
不重要
紧急
不紧急
添加
Author:
LST
Link:
https://cuso41108.github.io/2025/03/31/%E5%BE%85%E5%8A%9E%E4%BA%8B%E9%A1%B9%E5%B7%A5%E5%85%B7/
Copyright Notice:
All articles on this blog are licensed under
CC BY-NC-SA 4.0
unless otherwise stated.
Previous
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment
Next
20250908debug
今天用黑马点评加rocketmq,想测试一下模拟大量用户下单 项目代码见CuSO41108/hmdp_init 遇到了经典的分布式事务数据不一致的问题: 我用ai写的测试用例,因为上次生成5000个token用jmeter压测失败了(暂未解决) 第一次测试:redis中stock为1000,数据库也为1000,THREAD_COUNT = 5000。 结果: 数据库最后剩下9,redis:stock剩下0 (这个时候忘记看voucher_order和seckill_voucher了) 起初是问了ai: MQ重复消费 的可能性存在。必须保证handleVoucherOrder 和 createVoucherOrder 是 幂等的 已经有幂等校验: 123456789Long count = query().eq("user_id", userId).eq("voucher_id", voucherOrder.getVoucherId()).count();if (count > 0) { ...
LST
Articles
7
Tags
0
Categories
0
Follow Me
Announcement
This is my Blog
Contents
1.
重要且紧急
2.
重要但不紧急
3.
不重要但紧急
4.
不重要且不紧急
Recent Posts
限流算法笔记
2025-09-21
Untitled
2025-09-10
20250908debug
2025-09-08
待办事项工具
2025-03-31
Hello World
2025-03-09