A vertical slice is an architectural partition organized around a business capability. In a modular monolith, a domain module corresponds to a subdomain and contains its business logic plus supporting web/API and infrastructure logic. A single team owns each module, aligning responsibility with organizational boundaries. section 6.2.3
A module can use hexagonal architecture: inbound adapters expose interfaces such as a REST API, domain logic holds business rules, and outbound adapters connect to infrastructure such as a database. For example, a Consumer module separates its REST API, domain, and infrastructure packages. section 6.2.3
Design a domain module by deciding how to:
- Structure its internal domain architecture. section 6.2.3
- Define the API it exposes to other domains. section 6.2.3
- Organize its database schema and classes or packages into build projects. section 6.2.3
Figure 6.9 Domain module has a hexagonal architecture
Diagram of a domain module organized as a hexagonal architecture. section 6.2.3

