English | Deutsch
This repository describes and documents the HexSlice Architecture as an
architectural concept, independent of any programming language or framework. The
concept itself is language-agnostic; runnable, language-specific example
projects live under lab/.
HexSlice Architecture combines two architectural ideas:
- Hexagonal Architecture defines the system boundaries, ports, adapters, and dependency direction.
- Vertical Slice Architecture organizes the application core by use cases.
In short:
HexSlice Architecture means vertical use-case slices inside a hexagonal application core, with adapters outside and ports owned by the application.
- The domain contains business rules and remains technology-independent.
- The application layer contains use cases.
- Use cases are organized as vertical slices.
- Ports are defined by the application core.
- Ports live as locally as possible and as shared as necessary.
- Inbound adapters call use cases.
- Outbound adapters implement ports.
- The core does not depend on technical infrastructure.
The architecture is documented here:
Runnable, language-specific examples live under lab/:
- Go —
orderbusiness area with create order and cancel order slices, a CLI inbound adapter, andmake+ Docker tooling.