Hexagonal Architecture in Practice, Live Coding That Will Make Your Applications More Sustainable
summary
Live code builds a rescue-fleet service using Hexagonal/ports-and-adapters with Spring Boot, Maven multi-module layout and custom runtime annotations for DI; the domain is isolated, exposed via an API/SPI, and backed by a swappy adapter that handles pagination, "NA"/"unknown" and comma thousands separators from the swap.dev API. Acceptance, integration and unit tests drive features and stay green; a stubbed adapter lets consumers integrate early. Refactoring domain fields breaks the REST shape until a resource anti‑corruption layer fixes it. 100% live coding swap.dev API tests green
AI-written summary · about
