~/talk

Model Mitosis: Stop Confusing Microservices and the Monolith

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

Provides a concrete method called Model Mitosis for deciding when and how to split a monolith into services: identify behavioral boundaries and extract two domain models (search vs booking), create a transitional shared kernel for truly identical concepts, and translate between models via an anti-corruption layer. Demo code shows duplicated and specialized value objects (Price, ComfortClass, Schedule), adding a tax-calculation to booking, and fixing a production bug by moving schedule invariants into booking, resulting in a modular monolith that can later be safely separated at runtime.

AI-written summary · about

  1. 0:00Introduction
  2. 2:09Adding train booking
  3. 4:36Model coupling in search
  4. 7:44Big Mod tensions
  5. 12:10Critique of microservices
  6. 13:16Behavior-driven modularization
  7. 15:45Booking and search domains
  8. 17:10Model duplication vs specialization
  9. 20:47Shared Kernel limits
  10. 27:02Anti-corruption layer
  11. 30:14Tax calculation in booking
  12. 35:11Past booking bug
  13. 37:43Booking invariants
  14. 39:06Scalability with microservices
  15. 41:54Money domain library
  16. 42:58Model Mitosis explained
  17. 47:10Conclusion
~/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.