Gorder is a distributed microservices e-commerce order system, covering core modules such as order, stock, payment, and kitchen. It supports high concurrency, observability, service discovery, message queue, and other modern cloud-native features. Suitable for both learning and production.
- Multiple business modules: decoupled order, stock, payment, and kitchen services
- Cloud-native support: service discovery (Consul), tracing (Jaeger), monitoring (Prometheus & Grafana)
- Multiple storage backends: MySQL, MongoDB, Redis
- High concurrency & reliability: message queue (RabbitMQ), distributed architecture
- Rich scripts & one-click deployment: Docker Compose, init scripts
- Install Docker and Docker Compose
- Go 1.18+ (for local development)
docker-compose up -d
- MySQL will automatically execute
init.sql
cd internal/order && go run main.go
cd internal/stock && go run main.go
cd internal/payment && go run main.go
cd internal/kitchen && go run main.go
- Consul UI: http://localhost:8500
- RabbitMQ UI: http://localhost:15672
- Jaeger UI: http://localhost:16686
- Prometheus: http://localhost:9090
- Grafana: http://localhost:3000
- Order HTTP API: http://localhost:8282/api
api/ # API definitions (OpenAPI, Protobuf)
internal/ # Core microservices
public/ # Frontend static resources
prometheus/ # Prometheus config
scripts/ # Utility scripts
docker-compose.yml # One-click start for all dependencies
init.sql # MySQL initialization script
Gorder is licensed under the MIT License