Slide 1

Slide 1 text

Starring Directed By Special Appearance Presented by Photo: Hackercatxxy/Wikipedia

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

@hschwentner

Slide 4

Slide 4 text

@hschwentner

Slide 5

Slide 5 text

@hschwentner

Slide 6

Slide 6 text

@hschwentner

Slide 7

Slide 7 text

@hschwentner

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

@hschwentner

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

THE NAME OF THIS SPEAKER IS HENNING SCHWENTNER LIVE 45 MIN TALK

Slide 13

Slide 13 text

!"# Kolleg:in gesucht (Deutschlandweit)

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

Story Time

Slide 17

Slide 17 text

@hschwentner Alphorn Auto Leasing Inc.

Slide 18

Slide 18 text

@hschwentner

Slide 19

Slide 19 text

@hschwentner

Slide 20

Slide 20 text

Monolease A

Slide 21

Slide 21 text

salesperson [person] Monolease [software system] Central car leasing tool customer [external person] risk manager [person] closes leasing contracts with creates and calculates contracts in assesses risk of contracts in Alphorn Auto Leasing Inc. [enterprise] Context

Slide 22

Slide 22 text

@hschwentner Photo: Myriam Thyes/Wikipedia

Slide 23

Slide 23 text

@hschwentner Photo: Keiichi Inoue/flickr

Slide 24

Slide 24 text

@hschwentner long time to market error-prone teams get in each other’s way Issues with Legacy Systems it’s hard to build new ideas into the system and they are doing more or less the same there are often more than one

Slide 25

Slide 25 text

@hschwentner Alphorn’s boss: “Modernize it!”

Slide 26

Slide 26 text

@hschwentner Photo: Keiichi Inoue/flickr

Slide 27

Slide 27 text

=> I hate this old mess! This system has earned our money for decades

Slide 28

Slide 28 text

@hschwentner The consultant: “Modularize it!”

Slide 29

Slide 29 text

=> modules monolith to

Slide 30

Slide 30 text

=> modules monolith buy to carve out build new

Slide 31

Slide 31 text

@hschwentner Diagnosis: From Which Diseases Does Our Patient suffer?

Slide 32

Slide 32 text

@hschwentner Different diseases require different treatment

Slide 33

Slide 33 text

@hschwentner big ball of mud poorly expressed domain knowledge bad team organization Typical Diseases of Legacy Systems

Slide 34

Slide 34 text

@hschwentner big ball of mud poorly expressed domain knowledge bad team organization Cures strategic transformation tactical transformation team-organizational transformation

Slide 35

Slide 35 text

@hschwentner Domain-Driven Refactorings • Strategic Refactorings • Tactical Refactorings (that support strategic ones) Catalog: https://hschwentner.io/domain-driven-refactorings strategic transformation tactical transformation team-organizational transformation • Socio-Technical • Tactical refactorings (that strengthen domain knowledge in the code)

Slide 36

Slide 36 text

@hschwentner Strategic

Slide 37

Slide 37 text

@hschwentner Strategic Transformation 1. Step: Domain re-discovery 2. Step: Modeling the target architecture 3. Step: Aligning current with target architecture 4. Step: Do the move

Slide 38

Slide 38 text

@hschwentner Strategic Transformation 1. Step: Domain re-discovery 2. Step: Modeling the target architecture 3. Step: Aligning current with target architecture 4. Step: Do the move

Slide 39

Slide 39 text

@hschwentner Step 1: Domain Re-Discovery

Slide 40

Slide 40 text

@hschwentner To modernize the legacy system we first have to put it aside

Slide 41

Slide 41 text

@hschwentner To split the monolith we first have to put it aside

Slide 42

Slide 42 text

Mindset Switch

Slide 43

Slide 43 text

thinking about business => thinking about technology to

Slide 44

Slide 44 text

! ! " have to understand To build software: Tech people business people. # "

Slide 45

Slide 45 text

! ! " # " Tech people business people. common understanding

Slide 46

Slide 46 text

! ! " # " Tech people business people. common language

Slide 47

Slide 47 text

! ! " # " Tech people business people. ubiquitous language

Slide 48

Slide 48 text

=> direct commu- nication telephone game to user dev user dev

Slide 49

Slide 49 text

Collaborative Modeling

Slide 50

Slide 50 text

Collaborative Modeling

Slide 51

Slide 51 text

customer tells wish for 1 salesperson signs to gives for contract 3 risk manager contract passes on to 4 contract votes checks calculates 5 6 7 calculates to 8 2 car credit rating installment car resale value contract

Slide 52

Slide 52 text

https://hschwentner.io Read on in:

Slide 53

Slide 53 text

May 7th—10th 2025 Vienna, Austria The Collaborative Modeling Unconference comocamp.org Event Storming User Story Mapping Event Modeling Impact Mapping Domain Storytelling Storystorming Context Mapping Example Mapping etc.

Slide 54

Slide 54 text

@hschwentner Step 2: Determining the Target Architecture

Slide 55

Slide 55 text

Drawing Boundaries

Slide 56

Slide 56 text

Which activities belong together (from an actor’s perspective)?

Slide 57

Slide 57 text

customer tells wish for 1 salesperson signs to gives for contract 3 risk manager contract passes on to 4 contract votes checks calculates 5 6 7 calculates to 8 2 car credit rating installment car resale value contract sales risk assessment

Slide 58

Slide 58 text

@hschwentner sales risk assessment Context Map

Slide 59

Slide 59 text

@hschwentner Step 3: Aligning Current Architecture with Target Architeture

Slide 60

Slide 60 text

@hschwentner Aligning Current and Target Architecture current target

Slide 61

Slide 61 text

@hschwentner Determining the Current Architecture analysis tool developers architecture analyst source code

Slide 62

Slide 62 text

https://sustainable-software- architecture.com Read on in: analysis tool architecture analyst

Slide 63

Slide 63 text

Monolease [software system] salesperson [person] Monolease [software system] Central car leasing tool customer [external person] risk manager [person] closes leasing contracts with creates and calculates contracts in assesses risk of contracts in Alphorn Auto Leasing Inc. [enterprise] Context again

Slide 64

Slide 64 text

backend [container] database [container] frontend [container] salesperson [person] backend [container: EJB 2] risk manager [person] creates and calculates contracts in assesses risk of contracts in Monolease [software system] frontend [container: servlets, JSPs] database [container: IBM DB2] Containers

Slide 65

Slide 65 text

Calculator [component] frontend [container] LeasingServlet [component: servlet] CONTRACTS [database table] PartnerServlet [component: servlet] ContractService [component] PartnerService [component] backend [container] database [container] Contract [component] Partner [component] PARTNERS [database table] Components

Slide 66

Slide 66 text

big ball of mud => no vertical structuring

Slide 67

Slide 67 text

@hschwentner Aligning Current and Target Architecture current target

Slide 68

Slide 68 text

Calculator [component] frontend [container] LeasingServlet [component: servlet] CONTRACTS [database table] PartnerServlet [component: servlet] ContractService [component] PartnerService [component] backend [container] database [container] Contract [component] Partner [component] PARTNERS [database table] Components

Slide 69

Slide 69 text

Calculator [component] ContractService [component] PartnerService [component] backend [container] Contract [component] Partner [component] Component Backend

Slide 70

Slide 70 text

Component Bounded Contexts Sales Risk assessment

Slide 71

Slide 71 text

Calculator [component] ContractService [component] PartnerService [component] Contract [component] Partner [component] Component Bounded Contexts Sales Risk Assessment

Slide 72

Slide 72 text

Calculator [component] ContractService [component] PartnerService [component] Contract [component] Partner [component] Sales Risk Assessment Contract [component] Partner [component] Duplication?

Slide 73

Slide 73 text

@hschwentner Dave Thomas The DRY Principle Andy Hunt “Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.”

Slide 74

Slide 74 text

ContractService [component] Contract [component] Component Backend Sales Risk assessment

Slide 75

Slide 75 text

ContractService signContract() voteContract() Code Contract getContractNumber() setSignatureDate() setCreditRating() setVotingResult()

Slide 76

Slide 76 text

customer tells wish for 1 salesperson signs to gives for contract 3 risk manager contract passes on to 4 contract votes checks calculates 5 6 7 calculates to 8 2 car credit rating installment car resale value contract sales risk assessment

Slide 77

Slide 77 text

ContractService signContract() voteContract() Code Contract getContractNumber() setSignatureDate() setCreditRating() setVotingResult() Sales Risk Assessment

Slide 78

Slide 78 text

ContractService signContract() voteContract() Code Contract getContractNumber() setSignatureDate() setCreditRating() setVotingResult() Sales Risk Assessment ContractService signContract() voteContract() Contract getContractNumber() setSignatureDate() setCreditRating() setVotingResult()

Slide 79

Slide 79 text

ContractService signContract() Code Contract getContractNumber() setSignatureDate() Sales Risk Assessment ContractService voteContract() Contract getContractNumber() setCreditRating() setVotingResult()

Slide 80

Slide 80 text

ContractService signContract() Code Contract getContractNumber() setSignatureDate() Sales Risk Assessment ContractService voteContract() Contract getContractNumber() setCreditRating() setVotingResult()

Slide 81

Slide 81 text

ContractService signContract() Contract getContractNumber() setSignatureDate() Sales Risk Assessment ContractService voteContract() Contract getContractNumber() setCreditRating() setVotingResult() ContractService signContract() voteContract() Contract getContractNumber() setSignatureDate() setCreditRating() setVotingResult() Monolease =>

Slide 82

Slide 82 text

@hschwentner Improvement Backlog 1.2 Extract Specialized “Contract Service” 1.1 Extract Specialized “Contract” 1 Extract Context “Sales” Collecting Refactorings 2 Extract Context “Risk assessment” 2.1 Extract Specialized “Contract Service” 2.1 Extract Specialized “Contract”

Slide 83

Slide 83 text

@hschwentner Step 4: Do the Move

Slide 84

Slide 84 text

@hschwentner Improvement Backlog Planning Transformation Tactical Refactoring 1.1 Strategic Refactoring 1 User Story A Product Backlog User Story E User Story B User Story C User Story D Tactical Refactoring 1.2 Tactical Refactoring 1.3 Tactical Refactoring 2.1 Strategic Refactoring 2 Sprint Backlog

Slide 85

Slide 85 text

@hschwentner Improvement Backlog Planning Transformation User Story A Product Backlog User Story E User Story B User Story C User Story D Sprint Backlog Tactical Refactoring 1.1 Strategic Refactoring 1 Tactical Refactoring 1.2 Tactical Refactoring 1.3 Tactical Refactoring 2.1 Strategic Refactoring 2

Slide 86

Slide 86 text

@hschwentner Improvement Backlog Planning Transformation Tactical Refactoring 1.1 Strategic Refactoring 1 User Story A Product Backlog User Story E User Story B User Story C User Story D Tactical Refactoring 1.2 Tactical Refactoring 1.3 Tactical Refactoring 2.1 Strategic Refactoring 2 Sprint Backlog

Slide 87

Slide 87 text

@hschwentner Improvement Backlog Planning Transformation Strategic Refactoring 1 Product Backlog User Story E User Story C User Story D Tactical Refactoring 1.3 Tactical Refactoring 2.1 Strategic Refactoring 2 Sprint Backlog

Slide 88

Slide 88 text

@hschwentner Improvement Backlog Planning Transformation Strategic Refactoring 1 Product Backlog User Story E User Story C User Story D Tactical Refactoring 2.1 Strategic Refactoring 2 Sprint Backlog User Story F User Story G Tactical Refactoring 1.3

Slide 89

Slide 89 text

@hschwentner Improvement Backlog Planning Transformation Strategic Refactoring 1 Product Backlog User Story E User Story C User Story D Tactical Refactoring 1.3 Tactical Refactoring 2.1 Strategic Refactoring 2 Sprint Backlog User Story F User Story G

Slide 90

Slide 90 text

@hschwentner Improvement Backlog Planning Transformation Product Backlog User Story E Tactical Refactoring 2.1 Strategic Refactoring 2 Sprint Backlog User Story F User Story G

Slide 91

Slide 91 text

@hschwentner Improvement Backlog Planning Transformation Product Backlog User Story E Tactical Refactoring 2.1 Strategic Refactoring 2 Sprint Backlog User Story G User Story H User Story F User Story I

Slide 92

Slide 92 text

ContractService signContract() voteContract() Code Contract getContractNumber() setSignatureDate() setCreditRating() setVotingResult() Risk Assessment ContractService Contract Monolease voteContract() getContractNumber() setCreditRating() setVotingResult()

Slide 93

Slide 93 text

ContractService signContract() Code Contract getContractNumber() setSignatureDate() Risk Assessment ContractService Contract Monolease voteContract() getContractNumber() setCreditRating() setVotingResult()

Slide 94

Slide 94 text

@hschwentner Tactical

Slide 95

Slide 95 text

Code Risk Assessment ContractService voteContract() Contract getContractNumber() setCreditRating() setVotingResult() anemic

Slide 96

Slide 96 text

No content

Slide 97

Slide 97 text

@hschwentner Team- Organizational

Slide 98

Slide 98 text

@hschwentner sales risk assessment A Context Belongs to a Team Exclusively team A team B

Slide 99

Slide 99 text

@hschwentner Outlook

Slide 100

Slide 100 text

@hschwentner What Else? Socio-technical transformation Technical transformation Tactical transformation Anti-Anemia refactorings

Slide 101

Slide 101 text

@hschwentner Domain Patterns Pipeline Domain Blackboard Domain Dialog Domain • Logistics • Insurances and banks • administration • healthcare • event management • control center • Software development • Communication software • Negotiations in various domains

Slide 102

Slide 102 text

@hschwentner Conclusion

Slide 103

Slide 103 text

No content

Slide 104

Slide 104 text

https://hschwentner.io Read on in: https://hschwentner.io/domain-driven-refactorings

Slide 105

Slide 105 text

Lesson: is possible Monolith transformation (and hard) =>

Slide 106

Slide 106 text

@hschwentner Mistake: Going on the journey alone Better:

Slide 107

Slide 107 text

Photo: Henning Schwentner

Slide 108

Slide 108 text

! ❤

Slide 109

Slide 109 text

@hschwentner

Slide 110

Slide 110 text

Bibliography Conway, Melvin E. “How Do Committees Invent?” Datamation 14, no. 5 (April 1968): 28–31. Evans, Eric. Domain-Driven Design: Tackling Complexity in the Heart of Software. Boston: Addison- Wesley, 2004. Feathers, Michael C. Working Effectively with Legacy Code. Upper Saddle River, NJ: Prentice Hall, 2004. Foote, Brian and Joseph Yoder. “Big Ball of Mud.” PLoP ’97, Monticello, IL, September 1997. Fowler, Martin. “Strangler Fig Application.” Bliki, June 29, 2004. Fowler, Martin. Refactoring: Improving the Design of Existing Code. 2nd ed. Boston: Addison-Wesley, 2019. Hofer, Stefan and Henning Schwentner. Domain Storytelling: a Collaborative, Visual, and Agile Way to Develop Domain-Driven Software. Boston: Addison-Wesley, 2022. Lilienthal, Carola. Sustainable Software Architecture: Analyze and Reduce Technical Dept. Heidelberg: dpunkt, 2019. Lilienthal, Carola and Henning Schwentner. Domain-Driven Transformation: Modularize and Modernize Legacy Software. Boston: Addison-Wesley, 2025. Kernighan, Brian W. Software Tools in Pascal. Addison-Wesley, 1981. Newman, Sam. Monolith to Microservices: Evolutionary Patterns to Transform Your Monolith.

Slide 111

Slide 111 text

No content

Slide 112

Slide 112 text

Henning Schwentner  https://hschwentner.io  in/henningschwentner ✉ [email protected] Kolleg:in gesucht (Deutschlandweit)