{"repo":"techa03/goodsKill","free":true,"listed":false,"github":"https://github.com/techa03/goodsKill","clone":"git clone https://github.com/techa03/goodsKill.git","description":"🐎基于SpringCloud 2025.x + Dubbo 3.x + AI构建的模拟秒杀微服务项目，集成了Elasticsearch🔍、Gateway、Mybatis-Plus、Sharding-JDBC等常用开源组件","language":"Java","stars":2417,"topics":["sharding-jdbc","springcloud","springcloudalibaba","spring-boot","oauth2","java","ai"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"前言 项目命名为 goodsKill 一方面有商品秒杀的意思(好像有点chinglish的味道)，另外也可理解为 good skill ，本项目就是希望搭建一套完整的项目框架，把一些好的技术和开发技巧整合进来（偏向于后端技术），方便学习和查阅。另外需要注意的是，实际项目中并不是使用越多技术栈越好，过多的技术栈引入会带来额外的维护成本以及使用成本。 本项目为模拟秒杀项目，提供统一秒杀模拟请求接口，技术上整体采用SpringMVC + Mybatis持久层框架，采用Dubbo3.x+原生RestClient完成服务间接口调用，服务注册发现以及配置中心使用Nacos，支持数据库分库分表、分布式事务，使用状态机完成数据状态间的转换（基于Spring Statemachine实现）。 集成了Spring AI服务，可以通过AI机器人完成模拟秒杀动作。 已集成基于 OpenTelemetry 的全链路可观测性能力，通过 Grafana OTel LGTM（内置 OpenTelemetry Collector / Grafana / Loki / Mimir / Tempo）一站式实现指标、日志、分布式追踪的统一观测。 本项目基于最新Spring Cloud 2025.x + Spring Boot 4.x + JDK21体系构建，目前比较简陋且有很多不完善的地方，真实的秒杀场景远比本项目中的实现方式复杂，本项目省略了真实场景中的部分技术实现细节，目前仅作学习参考之用，如果觉得本项目对你有帮助的请多多star支持一下👍 。 附：码云项目链接 https://gitee.com/techa/goodsKill ，clone速度慢的用码云仓库拉吧，不定期同步到码云 ✨ 技术选型 使用的工具或框架 名称 官网 --- --- --- Spring Boot Spring Boot框架 https://spring.io/projects/spring-boot MyBatis-Plus MyBatis增强工具 https://mp.baomidou.com/ ZooKeeper 分布式协调服务 http://zookeeper.apache.org/ Redis 分布式缓存数据库 https://redis.io/ Kafka 消息队列 http://kafka.apache.org/ RabbitMQ 消息队列 https://www.rabbitmq.com/ MongoDB Mongo数据库 https://www.mongodb.com/ MySQL MySQL数据库 https://www.mysql.com/ PostgreSQL PostgreSQL数据库 https://www.postgresql.org/ Elasticsearch 全文搜索引擎 https://www.elastic.co Sharding-JDBC 分库分表组件 https://shardingsphere.apache.org Spring Cloud Alibaba Cloud Alibaba组件 https://github.com/alibaba/spring-cloud-alibaba Apache Dubbo RPC服务远程调用框架 https://github.com/apache/dubbo Spring Cloud Gateway 网关组件 https://spring.io/projects/spring-cloud-gateway Seata 分布式事","default_branch":null,"files":null,"tree":[],"storefront":"/r/techa03","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/techa03/goodsKill/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}