ddd-devops-integration
Installation
SKILL.md
DDD DevOps Integration
DevOps for DDD projects — ArchUnit quality gates (P0 block / P1 warn / P2 report) in CI/CD, multi-module incremental builds, architecture-type-aware Dockerfiles, event-driven DB migration, domain event health monitoring.
Workflow
Step 1: Code & Build — Compile all modules. Domain must compile last (zero framework contamination).
Step 2: Unit Test — Per-module unit tests run independently.
Step 3: ArchUnit Validate — P0 (zero deps, layer compliance) blocks CI; P1 (cycle-free) warns; P2 (naming) reports.
Step 4: Integration Test — Cross-module interaction tests with event store and outbox.
Step 5: Containerize — Build Docker images (monolith fat JAR or split CQRS with tuned JVM args).
Step 6: Deploy — K8s deploy with per-BC namespace, DB migration init containers, health probes.
Step 7: Monitor — Domain metrics (event rate, outbox depth, aggregate load) → Prometheus alerts.
Quality gates run at build time, never against production. Violations block merge, not deployment.