~/talk

Keep Spring at Arm's Length!

TalkinPolishat Confitura 2022 · on Saturday, 2022-06-25· [java, software-architecture]
slides:none on file

Argues that Spring’s invasiveness leads to hidden coupling and runtime surprises and proposes concrete fixes: use constructor injection instead of field injection to reduce framework coupling, avoid relying on @Transactional proxies (use TransactionTemplate or direct JDBC/jOOQ because proxies don’t work for private methods), remove shared “common” classpath modules to prevent unexpected auto-configuration, and keep the framework at the edges using ports-and-adapters. Presents a migration pattern using an event-handler map that enabled swapping RabbitMQ for Kafka in about four hours and reports this approach works in practice.

AI-written summary · about

  1. 0:00Introduction
  2. 3:01Framework vs library
  3. 6:13Framework downsides
  4. 13:39Debugging Spring traps
  5. 20:45Microservices dependencies
  6. 25:48Reducing invasiveness
  7. 30:24Avoiding framework magic
  8. 34:43Hexagonal architecture benefits
  9. 38:15Migrating RabbitMQ to Kafka
  10. 41:44Spring alternatives summary
~/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.