{"id":18668338,"url":"https://github.com/ninechapter-algorithm/seckill_jiuzhang","last_synced_at":"2025-11-06T16:30:30.932Z","repository":{"id":108721037,"uuid":"442066415","full_name":"ninechapter-algorithm/seckill_jiuzhang","owner":"ninechapter-algorithm","description":"秒杀项目实战，系统设计，system design","archived":false,"fork":false,"pushed_at":"2021-12-28T01:50:40.000Z","size":9761,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-27T18:26:58.711Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.jiuzhang.com/course/86/?utm_source=github-jenny","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ninechapter-algorithm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-27T06:05:10.000Z","updated_at":"2024-08-07T12:18:35.000Z","dependencies_parsed_at":"2023-04-14T02:17:20.045Z","dependency_job_id":null,"html_url":"https://github.com/ninechapter-algorithm/seckill_jiuzhang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninechapter-algorithm%2Fseckill_jiuzhang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninechapter-algorithm%2Fseckill_jiuzhang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninechapter-algorithm%2Fseckill_jiuzhang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninechapter-algorithm%2Fseckill_jiuzhang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ninechapter-algorithm","download_url":"https://codeload.github.com/ninechapter-algorithm/seckill_jiuzhang/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239498672,"owners_count":19648919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T08:42:18.266Z","updated_at":"2025-11-06T16:30:30.889Z","avatar_url":"https://github.com/ninechapter-algorithm.png","language":"JavaScript","readme":"# seckill_jiuzhang\r\n\r\n## 介绍\r\n\r\n商品秒杀系统\r\n1. 从互联网业务来看\r\n\t秒杀玩法在电商，直播带货业务中运用的非常广泛，越来越多的 秒杀玩法不断出现，秒杀系统几乎是所有互联网公司的 “标配”\r\n2. 从技术难度和深度来看\r\n\t秒杀系统需要面对瞬间高并发大流量（High Concurrency And Large Flow） 的场景，要求具备大并发、高性能系统的架构设计方法和关键技术\r\n\r\n\r\n## 技术栈\r\n1. 数据库：Mysql\r\n2. 持久层框架：Mybatis\r\n3. Springboot+SpringMVC\r\n4. 缓存中间件：Redis\r\n5. 消息中间件：RocketMQ\r\n6. 分布式唯一ID生成：雪花算法\r\n7. 流量控制框架：Sentinel\r\n8. 压力测试工具：JMeter\r\n## 核心技术点\r\n\r\n- **数 据 库 D a t a b a s e**\r\n    1. Redis 实现分布式锁 Distributed Lock \r\n    2. 缓存预热 Cache Preheating \r\n    3. 数据库乐观锁 DB Optimistic Lock \r\n    4. 数据库索引优化 DB Index Optimization\r\n- **中 间 件 M i d d l e w a r e**\r\n    1. 消息队列 Message Queue\r\n    2. 延迟队列 Delay Queue\r\n    3. 接口限流 Rate Limiting\r\n    4. 服务熔断 Circuit Breaker\r\n- **优 化 O p t i m i z a t i o n**\r\n    1. 商品限购 Purchase Limit\r\n    2. 雪花算法 ID 生成器 SnowFlake\r\n    3. 分布式事务处理 Distributed Transaction\r\n    4. 页面静态化 Static Page Technology\r\n    5. JMeter 压力测试 Stress Test\r\n    6. 防爬虫和黄牛请求 Anti-reptile\r\n\r\n\r\n## 秒杀流程\r\n\r\n![SharedScreenshot.jpg](https://s2.loli.net/2021/12/28/npqy9StOgIb3RrQ.jpg)\r\n\r\n## QuickStart\r\n\r\n- clone 源码\r\n- 导入 maven 项目\r\n- 运行 SQL 脚本生成数据库\r\n- 修改 application.properties 配置文件，修改数据库连接配置\r\n- 通过 springboot 启动项目\r\n\r\n## 联系作者\r\n添加个人微信号发送关键词【seckill】获取更多源码\r\n![image.png](https://s2.loli.net/2021/12/28/1AMsFGugKapqdZ2.png)\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninechapter-algorithm%2Fseckill_jiuzhang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fninechapter-algorithm%2Fseckill_jiuzhang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninechapter-algorithm%2Fseckill_jiuzhang/lists"}