Tagged articles

Domain Service

4 articles · Page 1 of 1
Java Tech Workshop
Java Tech Workshop
Sep 23, 2026 · Backend Development

ValidX in DDD: Layered Validation for Domain Models

This article demonstrates how ValidX, a JSR-380-compliant validation library with 100+ Chinese business validators, integrates into DDD layered architecture, showing annotation-based DTO validation, chain-style API for value objects, aggregate roots, and domain services, with code examples for each layer and best practices for avoiding common pitfalls.

Aggregate RootDDDDomain Service
0 likes · 20 min read
ValidX in DDD: Layered Validation for Domain Models
Yumin Fish Harvest
Yumin Fish Harvest
Jul 10, 2026 · Backend Development

When One Aggregate Isn’t Enough: Using Domain Services and Domain Events

The article explains why cross‑aggregate business logic belongs in domain services, how domain events capture immutable business facts, and demonstrates practical Spring Boot implementations—including in‑process publishing, message‑queue integration, and the Outbox pattern—while highlighting pitfalls and verification techniques.

Domain EventDomain ServiceDomain-Driven Design
0 likes · 10 min read
When One Aggregate Isn’t Enough: Using Domain Services and Domain Events
Architect-Kip
Architect-Kip
Apr 29, 2026 · Backend Development

A Generic State Machine Solution for Managing Business Entity Lifecycles

This article presents a comprehensive state‑machine‑based approach for managing the lifecycle of business entities such as orders and work orders, detailing core pain points, essential questions a state machine must answer, a comparative analysis of four implementation options, and a recommended solution that combines a database transition table, domain services, and optimistic‑lock concurrency control, along with architecture diagrams, code snippets, and operational guidelines.

ConcurrencyDomain ServiceOptimistic Lock
0 likes · 15 min read
A Generic State Machine Solution for Managing Business Entity Lifecycles