goodsKill
🐎基于SpringCloud 2025.x + Dubbo 3.x + AI构建的模拟秒杀微服务项目,集成了Elasticsearch🔍、Gateway、Mybatis-Plus、Sharding-JDBC等常用开源组件
What is goodsKill?
🐎基于SpringCloud 2025.x + Dubbo 3.x + AI构建的模拟秒杀微服务项目,集成了Elasticsearch🔍、Gateway、Mybatis-Plus、Sharding-JDBC等常用开源组件
Overview of goodsKill
What it is
goodsKill is an open-source simulated flash sale (seckill) microservice project built with Spring Cloud 2025.x, Spring Boot 4.x, JDK 21, and Apache Dubbo 3.x. It integrates common open-source components such as Elasticsearch, Gateway, Mybatis-Plus, Sharding-JDBC, and Spring AI. The project is designed as a learning reference for building a complete microservice architecture with flash sale scenarios, though it omits some real-world implementation details. It also includes OpenTelemetry-based full-link observability via Grafana OTel LGTM (OpenTelemetry Collector, Grafana, Loki, Mimir, Tempo).
Key features
- Multiple flash sale strategies: Synchronized lock, Redisson distributed lock, Kafka message queue, ZooKeeper distributed lock, Redis + MongoDB, Sentinel rate limiting, and others.
- Service governance: Nacos for service discovery and configuration, Dubbo 3.x for RPC calls, Spring Cloud Gateway for API gateway with dynamic routing.
- Data layer: Mybatis-Plus, Sharding-JDBC for sharding, Seata for distributed transactions, Flyway for database version control.
- AI integration: Spring AI service enables AI bot to simulate flash sale actions.
- Observability: OpenTelemetry integration with Grafana OTel LGTM for metrics, logs, and distributed tracing.
- Additional modules: Spring Boot Admin monitoring, Sa-Token authentication, MinIO object storage, GraphQL support, and Spring Statemachine for state transitions.
Use cases
- Learning and experimenting with microservice architectures based on Spring Cloud and Dubbo.
- Simulating flash sale scenarios to test different concurrency strategies (locking, message queues, distributed locks).
- Demonstrating integration of multiple open-source components (Elasticsearch, Sharding-JDBC, Seata, etc.) in a single project.
- Evaluating observability setups with OpenTelemetry and Grafana LGTM stack.
- Prototyping AI-assisted automation for e-commerce operations.
Getting started
bash # Clone the repository git clone https://github.com/techa03/goodsKill.git cd goodsKill # Build the project mvn clean install -DskipTests # Start required services (Nacos, Redis, MySQL, Kafka, etc.) via Docker Compose docker-compose up -d # Initialize database: execute seckill.sql in goodskill-web/src/main/sql # Configure hosts (e.g., 127.0.0.1 kafka, nacos, redis, mysql) For detailed instructions, see the repository README.
License and pricing
The project is licensed under the MIT License. It is open-source and free to use.
Based on the project's public README and repository metadata.