What is the hexagonal architecture (ports and adapters)?
spaceto flip
The core business logic sits in the center. Ports define interfaces for how the outside world interacts with it. Adapters implement those ports for specific technologies (REST controller, database repository, message queue listener). The core has zero dependencies on infrastructure -- all dependencies point inward.