Design Principles and Architecture of an E‑Commerce Transaction System with a Large Middle Platform and Small Frontend
This article outlines the architectural principles, middle‑platform strategy, service layers, common components, cloud deployment, security measures, and detailed design diagrams for building a scalable, high‑concurrency e‑commerce transaction system using DDD, microservices, and cloud‑native technologies.
Architecture Principles : The system follows a "large middle platform + small frontend" approach, employing domain‑driven design (DDD) for the business middle platform, isolating business capabilities as SaaS services, and enabling continuous iteration.
E‑Commerce Middle Platform : Divided into a foundational capability layer and a platform product layer; the former stabilizes core business models, while the latter orchestrates these capabilities into solutions for various transaction scenarios (e.g., fixed price, auction, pre‑sale).
Service Access Layer : Acts as the bridge between frontend products and middle‑platform services, implemented with Spring Boot, handling parameter conversion, routing, service invocation, and response packaging, while enforcing interaction standards and security.
Common Core Components : Includes data access (sharding, read/write separation), message middleware abstraction (ActiveMQ, RabbitMQ, RocketMQ, Kafka, cloud equivalents), and address library for hierarchical geographic services.
Cloud Services & Container Layer : Recommends using mature cloud services (e.g., Alibaba Cloud ECS) and Docker containers to reduce operational overhead and accelerate deployment.
Business Frontend Products : Covers iOS, Android, H5, PC sites, and mini‑programs, tailored to the e‑commerce domain.
Stability and Security System : Highlights the need for traffic control, circuit breaking, monitoring, and observability using Sentinel, DubboKeeper, Pinpoint, and Telegraf+InfluxDB+Grafana for real‑time metrics.
Overall Design : Discusses logical to physical project mapping, modularization based on team size, and the evolution from simple monoliths to a middle‑platform‑centric architecture.
Why Adopt a Business Middle‑Platform : Addresses challenges of scaling, inter‑team dependencies, and development bottlenecks, proposing the middle‑platform as a solution for modularity and extensibility.
Transaction Business Flow : Presents order creation and reverse refund processes, identifying core domains such as pricing, inventory, payment, and delivery.
Transaction Business Middle‑Platform Architecture : Shows layered modeling (foundational capabilities, platform product layer) and integration with auxiliary services (member, product, logistics).
Core Domain Model & Class Diagrams : Provides high‑level class diagrams for business (BA) and presentation (PA) layers, illustrating domain objects, DTOs, and event messages.
Core Service & Sequence Design : Describes RESTful service wrappers, key microservices, and a simplified order‑to‑payment call chain, emphasizing performance, safety, and fault tolerance considerations.
Finally, the article includes a promotional section inviting readers to join a professional community and request free resources such as architecture e‑books, case studies, Docker guides, planning documents, and Huawei HarmonyOS materials.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
IT Architects Alliance
Discussion and exchange on system, internet, large‑scale distributed, high‑availability, and high‑performance architectures, as well as big data, machine learning, AI, and architecture adjustments with internet technologies. Includes real‑world large‑scale architecture case studies. Open to architects who have ideas and enjoy sharing.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
