Distributed Micro Cloud Mall

May 15, 2026 · 3 min read
projects

Microservice E-commerce Platform - SpringCloud Alibaba Stack (Nacos/Gateway/Sentinel) + MyBatis-Plus + Feign Remote Calls.

Project Overview

Complete practice from monolithic to microservice architecture, covering enterprise middleware integration and distributed solutions. The project benchmarks against mid-senior Java backend engineer core competency models.

Professional GOAL (Position Capability Benchmarking)

LevelCapability DomainCoverage ModulesWeight
🥇 Distributed ArchitectureMicroservice splitting, service governance, distributed transactions, message queuesmall-order-service, mall-seckill-service, Middleware35%
🥈 Middleware DepthRedis cache, ES search, RocketMQ messaging, Seata transactions, Sentinel rate limitingdocs/Middleware/ (11 middlewares)30%
🥉 Business ImplementationProduct/User/Cart/Order CRUD, JWT auth, AOP loggingmall-product-service, mall-user-service, mall-cart-service25%
🏅 EngineeringDocker containerization, Gateway, Nacos config center, CI deploymentmall-gateway, docs/docker/10%

Technical Architecture

┌──────────┐   ┌──────────┐   ┌──────────┐
│ Client    │   │ Client   │   │ Client   │
└────┬─────┘   └────┬─────┘   └────┬─────┘
     └──────────────┴──────────────┘
                │
         ┌──────┴──────┐
         │ Spring Cloud │
         │   Gateway    │  ← Unified Auth + Routing + Rate Limiting
         └──────┬──────┘
                │
     ┌──────────┼──────────┐
     │          │          │
┌────┴────┐ ┌──┴───┐ ┌───┴────┐
│ Services │ │Middle│ │Infra   │
│ User     │ │Redis │ │Nacos   │
│ Product  │ │MySQL │ │Sentinel│
│ Order    │ │Mongo │ │Seata   │
│ Cart     │ │ES    │ │XXL-Job │
│ Pay      │ │MQ    │ │        │
│ Seckill  │ │Canal │ │        │
└─────────┘ └──────┘ └─────────┘

Project Structure

mall-micro-cloud/
├── mall-api/                  # Feign Interface Layer
├── mall-common/               # Common Utilities
├── mall-gateway/              # Spring Cloud Gateway
├── mall-services/
│   ├── mall-user-service/     # User Service (JWT + BCrypt)
│   ├── mall-product-service/  # Product Service (MyBatis-Plus)
│   ├── mall-cart-service/     # Cart Service (Redis Cache)
│   ├── mall-order-service/    # Order Service (Seata Distributed Tx)
│   ├── mall-pay-service/      # Payment Service (RocketMQ Tx Messages)
│   ├── mall-seckill-service/  # Seckill Service (High Concurrency)
│   ├── mall-es-service/       # Search Service (Elasticsearch)
│   ├── mall-oss-service/      # Object Storage Service
│   ├── mall-scheduler-service/ # Scheduler Service (XXL-Job)
│   ├── mall-consumer-service/ # Message Consumer Service
│   └── mall-test-service/     # Test Service
├── docs/
│   ├── Middleware/             # 11 Middleware Tutorials
│   ├── interview/             # Interview Questions (9 chapters)
│   ├── db-sql/                # Business SQL
│   └── docker/                # Docker Deployment Guide
└── pom.xml                    # Maven Parent POM

Technical Highlights

1. Distributed Architecture

  • Microservice Splitting: Independent services by business domain
  • Service Governance: Nacos discovery + Gateway routing
  • Distributed Transactions: Seata AT mode for cross-service consistency

2. Deep Middleware Integration

  • Redis: Cache + Distributed Lock + Session Management
  • Elasticsearch: Full-text Search + IK Analyzer
  • RocketMQ: Async Messaging + Transaction Messages
  • Sentinel: Rate Limiting + Circuit Breaking

3. High-Concurrency Seckill

  • Redis pre-deduction + Redisson reentrant lock
  • RocketMQ async persistence prevents overselling
  • Sentinel rate limiting protects system stability

4. Engineering Practices

  • Docker containerization
  • Gateway unified authentication
  • Nacos configuration center

Project Results

  • Architecture: 11 microservices designed and governed
  • Middleware: 11 enterprise middlewares integrated
  • Performance: 10k+ concurrent stress testing passed
  • Documentation: Complete middleware tutorials and interview questions

Project Status: ✅ Completed
GitHub: View Source Code

杨劲松
Authors
Java后端工程师 / AI应用开发

Java后端起步,正在转型AI应用/Agent开发者,让大模型落地到真实业务。

  • 🖥️ 技术方向 — Spring Boot微服务 + AI Agent应用
  • 🤖 当前专注 — 多智能体协同调度、RAG知识库
  • 🎯 目标 — 让企业软件从「点击操作」走向「自然对话」