⚡️ 电子商务项目的微服务架构及系统! 使用 Spring Cloud 的 Spring Boot 微服务应用,强大而灵活的后端可管理电子商务项目。
⚡️ 电子商务项目的微服务架构及系统! 使用 Spring Cloud 的 Spring Boot 微服务应用,强大而灵活的后端可管理电子商务项目。
ecommerce-microservices is a production-grade, cloud-native e-commerce platform built with a microservice architecture. It consists of 13 Spring Boot 3 backend services, an Apache APISIX API Gateway, a Next.js 16 frontend, and a full suite of infrastructure — all deployable on Kubernetes (k3d) with a single command.
| ⚡ Backend | 13 microservices · Java 21 · Spring Boot 3.3.5 |
| Gateway | Apache APISIX 3.9 · Rate limiting · JWT validation |
| ️ Databases | PostgreSQL 16 · Redis 7 · Elasticsearch 8 |
| Messaging | Apache Kafka 3.9 (KRaft mode, no Zookeeper) |
| Auth | Keycloak 26 · OAuth2 / OIDC · JWT |
| ☁️ Storage | RustFS (S3-compatible) |
| Deploy | Docker Compose · k3d / Kubernetes · ArgoCD |
| Runtime | Java 21 (Virtual Threads) |
| Framework | Spring Boot 3.3.5, Spring Security 6, Spring Data JPA |
| Database | PostgreSQL 16, Liquibase migrations |
| Search | Elasticsearch 8, Spring Data Elasticsearch |
| Messaging | Apache Kafka 3.9 (KRaft), Spring Kafka |
| Security | Keycloak 26, OAuth2 / OIDC, JWT, Spring Security Resource Server |
| Gateway | Apache APISIX 3.9 (OpenID Connect, rate limiting, CORS) |
| Storage | RustFS (S3-compatible), AWS SDK v2 |
| Observability | Micrometer, Prometheus, Spring Boot Actuator |
| API Docs | Springdoc OpenAPI 3, Swagger UI w/ PKCE |
| Resilience | Resilience4j (circuit breaker, retry) |
| Build | Maven, Jib (Dockerless containerization) |
| Framework | Next.js 16.2, React 19.2 |
| State | Zustand 5, TanStack Query 5 |
| Styling | Tailwind CSS 4, Lucide icons |
| HTTP | Axios |
| Local K8s | k3d (K3s in Docker), NGINX Ingress Controller |
| Production | Kubernetes, ArgoCD (GitOps) |
| Registry | GitHub Container Registry (ghcr.io) |
| CI | GitHub Actions, SonarCloud |
git clone https://github.com/hoangtien2k3/ecommerce-microservices.git
cd ecommerce-microservices
bash start-ecommerce.shThe script automatically:
/etc/hostsWait ~5 minutes for all pods to become ready:
kubectl get pods -n ecommerce -w| Service | URL |
|---|---|
| Frontend | http://ecommerce.local |
| API Gateway | http://api.ecommerce.local |
| Keycloak Admin | http://keycloak.ecommerce.local |
| RustFS Console | http://rustfs.ecommerce.local/rustfs/console |
…Every service exposes:
/actuator/health (liveness + readiness on port 9000)/actuator/prometheus (Micrometer + Prometheus)X-Correlation-Id) propagated across all servicesIf you would like to contribute to the development of this project, please follow our contribution guidelines.
MIT License
Copyright (c) 2026 Hoàng Anh Tiến暂无开放 Issues,或尚未同步最近议题。