分布式锁的解决
摘要:1、分布式锁的使用场景 秒杀类的 接口幂等性 2、秒杀问题现象 通过Nginx 配置了负载,访问后台的接口,接口里面减库存代码如下 @RestController public class RedisController { @Autowired private StringRedisTemplat
阅读全文
posted @ 2022-02-28 17:39
posted @ 2022-02-28 17:39
posted @ 2022-02-22 14:22
posted @ 2022-02-14 16:59
Powered by:
博客园
Copyright © 2025 与时具进&不忘初心
Powered by .NET 9.0 on Kubernetes