~/talk

Implement Monolith - Codebase Modularization, Microservices

Talkat Devoxx Poland 2021 · 2021-08-25..08-27· [software-architecture, microservices]
links:none on file
slides:none on file

Shows how a product that started as a monolith becomes a modularized monolith by enforcing module API boundaries in code, not just packages. Uses Java 9 research but chooses ArchUnit to run architecture tests in CI, including rules like banning field injection and forbidding internal-class calls; initial scan surfaces ~3,000 violations. Implementation is pragmatic: add ArchUnit tests, enable one module at a time, move classes to the API, hide repositories behind APIs, and use mob programming to avoid massive pull-request reviews.

AI-written summary · about

  1. 0:00Intro
  2. 2:30Start with monolith first
  3. 3:56A kind of agenda
  4. 5:53The perfect microservice
  5. 7:26There's this small feature... GDPR
  6. 8:43And one more: T&C
  7. 11:16Two modules and... the rest
  8. 12:28DB Relations
  9. 14:14The future: replace Identity module
  10. 14:42Future - replace CIAM
  11. 15:12We know where we're going
  12. 16:06Broken boundaries
  13. 16:33Is there a tool to help us
  14. 17:02Java 9
  15. 18:09ArchUnit
  16. 19:58Example: Field injection
  17. 22:29Example: Coding rules
  18. 23:13Example: layered architecture
  19. 24:23Example: Slices
  20. 25:12More examples
  21. 25:56Access module using its API
  22. 26:17Rule #1: Access Module via API
  23. 26:45Rule #1: Implementation
  24. 28:04Rule #1: Should be included in scan
  25. 28:54Rule #1: Rule check
  26. 30:19Rule #1: Actual dependency check
  27. 31:02Module has API
  28. 31:22Rule #2: Implementation
  29. 32:27Module API is unit tested
  30. 33:18Module internal architecture
  31. 34:32Start with a simple one
  32. 36:10Approach
  33. 36:49The next one
  34. 37:44Mob programming
  35. 38:57Other simple modules
  36. 39:33Create a new module
  37. 39:59Largest modules comes last
  38. 40:34Cohesion
  39. 41:44Next steps
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.