摘要: @Configurationpublic class RedissonConfProperty { @Value("${spring.redis.cluster.nodes:}") private String clusters; @Value("${spring.redis.host:}") pr 阅读全文
posted @ 2021-07-27 11:57 dahuinihao 阅读(60) 评论(0) 推荐(0) 编辑
摘要: /** * tweeter的snowflake 移植到Java.参考资料:https://github.com/twitter/snowflake * id构成: 42位的时间前缀 + 10位的节点标识 + 12位的sequence避免并发的数字(12位不够用时强制得到新的时间前缀) * id单调递 阅读全文
posted @ 2021-07-27 11:29 dahuinihao 阅读(398) 评论(0) 推荐(0) 编辑
摘要: https://github.com/btraceio/btrace https://arthas.aliyun.com/doc/ 阅读全文
posted @ 2021-01-17 10:36 dahuinihao 阅读(102) 评论(0) 推荐(0) 编辑
摘要: badregex: (\b(exec|execute|insert|delete|update|drop|chr|mid|master|truncate|char|declare|sitename|xp_cmdshell|create|alter|grant|union)\b)import com. 阅读全文
posted @ 2020-12-28 20:31 dahuinihao 阅读(877) 评论(0) 推荐(0) 编辑
摘要: import com.alibaba.fastjson.JSON;import com.alibaba.fastjson.JSONArray;import com.fasterxml.jackson.annotation.JsonInclude.Include;import com.fasterxm 阅读全文
posted @ 2020-12-28 20:29 dahuinihao 阅读(137) 评论(0) 推荐(0) 编辑
摘要: https://segmentfault.com/a/1190000022596853?utm_source=tag-newest 高并发场景-订单库存防止超卖 https://blog.csdn.net/jianzhang11/article/details/107399080 token自动续期 阅读全文
posted @ 2020-11-24 14:51 dahuinihao 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 空间换时间 分布式查询 OLTP 联机事务处理,OLAP 联机分析处理,时间分链表 阅读全文
posted @ 2020-11-18 23:48 dahuinihao 阅读(81) 评论(0) 推荐(0) 编辑
摘要: http://mycat.org.cn/ mycat站点 阅读全文
posted @ 2020-11-18 23:07 dahuinihao 阅读(72) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/cangqinglang/p/10788277.html 阅读全文
posted @ 2020-11-18 15:38 dahuinihao 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 多高的并发量,是数据强一致性的还是最终一致性的 系统的高并发的最终容量: 木桶效应,各个节点相当于一个竖的木板,所有木板合成一个木桶,木桶的容量由最短的决定,找出短板 高并发系统: 业务接口比较多的,多地区多机房部署,三地两中心 CDN: 缓存静态数据和一些数据一致性不是特别高的动态数据,关键点是怎 阅读全文
posted @ 2020-11-18 15:36 dahuinihao 阅读(109) 评论(0) 推荐(0) 编辑