Blog / Category

DDD Domain Modeling

Domain-driven design, business modeling, boundary design, and implementation methods.

All41Distributed Microservices4DDD Domain Modeling29Vibe Coding Projects8

The Three Realms of Business Modeling

Borrowing the idea of the three realms of learning to talk about business modeling: modeling from requirements, modeling from other people's models, and modeling from reality. With firsthand experience from Meituan's delivery route optimization, a warehouse management system, and a permission model, plus what each approach costs and when it fits.

Why Do Seasoned Engineers Like Event-Driven Domain Modeling?

An analysis of why event-driven modeling is so popular in DDD circles, through event-driven design, event sourcing, modeling artifacts, and model optimization — plus where it works well, where it misleads, and why it is not a universal answer.

Extension Points as the Enemy of DDD and Mid-Platforms

Starting from the open-closed principle, why extension points become the enemy of DDD and mid-platforms: their impact on domain models, their difficulty to trace in call chains, and how extension implementations rot — plus control strategies across the framework, design pattern, capability orchestration, domain design, and implementation dimensions.

Domain Modeling Walkthrough with an Extremely Simple Scenario

Starting from the simplest Key-Value object, a step-by-step domain modeling walkthrough: value object abstraction, persistence modeling, grouping and association, tree structures, JSON deserialization, and value parsing — ending in responsibility and service interface design.

Code Governance Across Architectural Styles with DDD

A practical account of code governance drawn from refactoring a product center: how governance differs from refactoring, where DDD code complexity comes from, how to govern code, and what to watch for from the Servlet/JSP era through microservices and mobile.

Splitting and Merging Domains in DDD

An introduction to common scenarios for splitting and merging domain contexts in DDD, with real cases from e-commerce and enterprise office, plus practical guidance at the code, architecture design, and interface and documentation levels.

Three Tables That Take You from CRUD to DDD

An introduction to three practical tables — the entity behavior table, the domain context table, and the domain service capability table — that help you move from a CRUD mindset to DDD domain modeling, with a full HR system worked example.

COLA Application Architecture: From 1.0 to 4.0

How Alibaba's COLA application architecture evolved: the complexity it targets, the changes from 1.0 through 4.0 and their packaging strategies, where it has been used, and its learning cost.

DDDPlus: A DDD Framework for Business Middle Platforms

An overview of DDDPlus: its positioning and origins, the modules in its business-platform blueprint, its core features and official demos, and the trade-offs around extensibility, coupling, and maintainability.

Diamond Symmetry Architecture: Combining Hexagonal and Layered Ideas

An overview of Zhang Yi's Diamond Symmetry Architecture: its origins, northbound and southbound gateways, ports and adapters, where it has been applied, and the trade-offs compared with layered and hexagonal architectures.