Target Audience: Developers who understand DDD concepts and want to implement them in actual code Prerequisites: Quick Start and Tactical Design from Concepts section Purpose of this Section: Implement DDD patterns with actual Spring Boot code through an order domain
Before You Start
- Java 17 or higher
- Gradle 8.x
- IDE (IntelliJ IDEA recommended)
- Docker (for Kafka, optional)
In this section, we implement an order domain with DDD patterns using Spring Boot. You will experience how each pattern interacts while converting theoretical concepts into actual code.
Learning Path#
Learning progresses from project setup to domain model implementation, application layer implementation, and infrastructure layer implementation. Each step builds upon the foundation established in previous steps.
| Step | Document | What You’ll Learn | Duration |
|---|---|---|---|
| 1 | Project Setup | Project structure, dependency configuration | ~15 min |
| 2 | Order Domain | Aggregate, Entity, Value Object implementation | ~40 min |
| 3 | Application Layer | Use Case, Domain Service implementation | ~30 min |
| 4 | Event Sourcing Practice | Event storage, snapshots, time travel | ~45 min |
What You’ll Build#
After completing all exercises, you will have implemented:
- Order Aggregate (including Entity, Value Object)
- OrderApplicationService (Use Case orchestration)
- OrderRepository (persistence)
- Domain event publishing and handling