~/talk

Hexagonal Architecture: How to Beat Spaghetti Code?

TalkinFrenchat Devoxx France 2024 · 2024-04-17..04-19· [software-architecture]
links:none on file
slides:none on file

Describes using hexagonal architecture to stop “spaghetti” code by inverting dependencies into ports and adapters so domain code stays unchanged during migrations. Demonstrates migrating a MySQL service to Spring Data JPA and planning to swap JMS for RabbitMQ by adding concrete adapters (e.g., TalkRepositoryAdapter and a Rabbit listener adapter) while the application continues to return talks without domain changes. Shows enforcing the intended structure with ArchUnit rules to keep architecture and tests stable.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27Evolving spaghetti code
  3. 3:58Strong DB dependencies
  4. 4:41Inverting dependencies
  5. 7:02Spring Data JPA migration
  6. 10:27Hexagonal architecture
  7. 11:56Preserving architecture
  8. 13:42Summary and conclusion
~/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.