Skip to main content

Adapters

Where the outside world meets the application boundary.

Adapters translate between external protocols (HTTP, database drivers, message queues) and the port interfaces the domain defines. The domain never knows which adapter is plugged in.

Context

Questions

When does an adapter become complex enough to deserve its own domain?

  • What signals tell you an adapter is doing too much translation?
  • How do you test adapters without the external system running?