Loading lesson…
Level 1 · Apprentice0 XP
Hexagonal architecture: driving adapters call in, driven adapters are called out.
Step 1 / 6
ProblemThe app was built for a web browser and a MySQL database. Now it needs a mobile API, a nightly batch job, and a move to PostgreSQL. Each door and each storage is wired into the rules.
← → step
Before this: Entities and use cases
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Add a second driving adapter to an existing use case, for example a CLI command or a message listener, without changing the use case. Then add an in-memory driven adapter and use it in a test.