~/talk

Hexagonal Architecture in Practice, Live Coding That Will Make Your Applications More Sustainable

Talkat Spring I/O 2025 · 2025-05-22..05-23· [software-architecture, java]
slides:none on file

Live coding shows a Java Spring Boot app built domain-first with hexagonal architecture, unit and integration tests (JUnit, mock server) and a GitLab repo and slides linked. The domain module contains pure business logic (assemble a fleet for 150 passengers, example with five survivors and the Millennium Falcon with capacity six), adapters implement a StarshipInventory that handles swappy pagination and messy "passengers" strings, controller maps domain objects to REST resources, tests run green and a production stub enables incremental deployment.

AI-written summary · about

  1. 0:00The rebels' problem
  2. 0:40Swapping and AI
  3. 1:43Classic layer flaws
  4. 6:40Hexagonal architecture
  5. 9:34API and SPI components
  6. 11:49Coding the domain
  7. 20:23Building the controller
  8. 31:35Integration testing
  9. 32:34Implementing the swappy client
  10. 40:34Refactoring for scalability
  11. 45:11Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.