liveBook · Manning

Driven adapter

Also called secondary adapter

An adapter that implements an application’s output port by translating its contract into interactions with an external system.

How 3 Manning books explain it

Clean Applications with Hexagonal Architecture

An adapter that implements an output port and translates application requests into interactions with an external system.

How it is used
Isolates external-system interactions behind core-owned output ports in hexagonal architecture.
How deep it goes
Explains adapter responsibilities, dependency direction, model and error translation, assembly, and synchronous-call safeguards.
Examples
Uses a JPA article repository, an in-memory repository, and an author-service adapter to illustrate driven adapters.
What you can do after
Build it from scratch by implementing a core-owned port, translating infrastructure interactions, and wiring the adapter at assembly time.

Read how Clean Applications with Hexagonal Architecture explains driven adapter →

Grokking Software Architecture

An implementation outside the application core that translates a secondary port's contract into actions involving an external system.

How it is used
Implements a secondary port outside the core to translate domain requests into infrastructure actions.
How deep it goes
Explains the port-adapter boundary, dependency inversion, and injection, then demonstrates several alert implementations.
Examples
Uses SQL repositories and Twilio, console, and Kafka alert adapters as infrastructure examples.
What you can do after
Build it from scratch by implementing an alert port, injecting an adapter, and wiring the choice at the application entry point.

Read how Grokking Software Architecture explains driven adapter →

Microservices Patterns, Second Edition

An adapter that enables application business logic to access external systems or services.

How it is used
Connects business logic to external applications and services through outbound ports.
How deep it goes
Defines the adapter’s port relationship and gives database, remote-service, and event examples.
Examples
Uses database access objects, remote-service proxies, event publication, and FTGO’s MySQL, Twilio, and Stripe integrations.
What you can do after
Understand how business logic requests external systems through outbound ports and adapters.

Read how Microservices Patterns, Second Edition explains driven adapter →

What to know first

Related concepts

Questions about driven adapter

What is driven adapter?

An adapter that implements an application’s output port by translating its contract into interactions with an external system.

Which Manning books explain driven adapter?

Clean Applications with Hexagonal Architecture, Grokking Software Architecture and Microservices Patterns, Second Edition.

What should I know before learning driven adapter?

Manning books that teach driven adapter usually introduce interface, business logic, entity and layered architecture first.

What is driven adapter a kind of?

Driven adapter is a kind of adapter. An adapter is a software component that translates between interfaces or representations so otherwise incompatible components can work together.

What is driven adapter also called?

Driven adapter is also called secondary adapter.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.