本项目为使用Golang编写的Http服务,提供商品信息管理功能。
- 增加商品信息(利用 Redis 分布式锁防止并发问题)
- 修改商品信息 (利用 Redis 分布式锁防止并发问题)
- 查询商品信息(利用 Mysql持久化数据,redis和本地缓存实现双层缓存)
- 删除商品信息(符合幂等性,响应结果给出删除时间)
- 需求分析
- 设计项目架构
- 实现基础日志功能
- 增加商品信息(未使用Redis)
- 修改商品信息(未使用Redis)
- 查询商品信息(未使用Redis)
- 删除商品信息(未考虑不同时区)
- 删除商品信息(响应时间和时区关联)
- 添加Redis缓存
- 实现Redis分布式锁