Skip to content

Commit f0d9bee

Browse files
committed
ES-104: Update DDD-HEXAGONAL.md to clarify the role of the Anti-Corruption Layer, specifying the use of gateway adapters in the secondary-adapters directory for improved context translation.
1 parent d9c91b7 commit f0d9bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DDD-HEXAGONAL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ src/modules/[module]/
102102
| **Shared Kernel** | A subset of the domain model shared between multiple contexts. Must be pure domain — no infrastructure | `src/shared-kernel/domain/` — contains only `Result`, `AppError`, `UseCase`, `Money`, `Quantity`, `IdempotencyStore` |
103103
| **Context Map** | Documents the relationships between Bounded Contexts | Orders imports from Customers (ACL via CustomerGateway), Carts (ACL via CartGateway) |
104104
| **Upstream/Downstream** | One context provides, another consumes | Orders (downstream) consumes Customers, Carts, Inventory, Payments (upstream) |
105-
| **Anti-Corruption Layer** | Translates between two contexts' models | Mappers in `secondary-adapters/persistence/mappers/` |
105+
| **Anti-Corruption Layer** | Translates between two contexts' models | Gateway adapters in `secondary-adapters/adapters/` (e.g., `CustomerGatewayAdapter`, `CartGatewayAdapter`) |
106106

107107
### 2.2 Tactical Design Patterns
108108

0 commit comments

Comments
 (0)