# Port Adapter

> Place domain logic behind inbound and outbound ports, implement external technology through adapters, and forbid domain dependence on infrastructure.

Record: `algorithms:port-adapter`
Kind: algorithm
Canonical: https://banes-lab.com/ontology/algorithms#algorithms-port-adapter
Closure: https://banes-lab.com/json/records/algorithms/port-adapter/closure

Listed in [Algorithm contracts](https://banes-lab.com/api/records/algorithms.md), after [Architectural Style Boundary](https://banes-lab.com/records/algorithms/architectural-style-boundary.md) and before [Event Messaging](https://banes-lab.com/records/algorithms/event-messaging.md).

## Domain

- [Architecture](https://banes-lab.com/records/algorithms-domain/architecture.md)

## Tier

- [leaf](https://banes-lab.com/records/vocabulary/domain-tier-leaf.md)

## Composed by

- [Persistence Fork](https://banes-lab.com/records/algorithms/persistence-fork.md)

## Math type

- [Logic](https://banes-lab.com/records/reasoning/math-type-logic.md)

## Force

- [Domain boundary](https://banes-lab.com/records/force/domain-boundary.md)

## Linked from

- [Living profile](https://banes-lab.com/ontology/algorithms/algorithms-domain-living-profile.md)
- [The mathematics](https://banes-lab.com/ontology/reasoning/the-mathematics.md)
- [Domain tiers](https://banes-lab.com/ontology/schema/the-vocabulary-domain-tier.md)
- [The forces](https://banes-lab.com/ontology/schema/the-forces.md)
