关注以下几个问题: 频繁访问商品页面 页面数据静态化,每次请求不必动态加载。静态数据放多级缓存:CDN+Nginx+Redis最终不存在的数据才访问到DB 解决作弊及延缓下单 为秒杀独立出一套系统 避免资源耗尽影响正常的用户下单操作 redis实现精准扣减库存 轻松抗下每秒几万高并发(官方理论10w) 抢购完毕后在nginx层过滤掉后续请求 秒杀成功后高并发下单请求进入MQ异步削峰 本文摘自《从 0 开始带你成为消息中间件实战高手》