Slide 1

Slide 1 text

Failures and learnings during the adoption of DDD MICHAEL PLÖD FELLOW

Slide 2

Slide 2 text

Michael Plöd Fellow at INNOQ Mastodon (or Twitter): @[email protected] LinkedIn: https://www.linkedin.com/in/michael-ploed/ Current consulting topics: • Domain-Driven Design • Team Topologies • Transformation from IT Delivery to digital product orgs Regular speaker at (inter-)national conferences and author of a book + various articles

Slide 3

Slide 3 text

Get my DDD book cheaper Book Voucher: 7.99 instead of (min) 9.99 http://leanpub.com/ddd-by-example/c/speakerdeck

Slide 4

Slide 4 text

I have failed a lot with DDD …

Slide 5

Slide 5 text

… and learned so much on this path …

Slide 6

Slide 6 text

… which was valuable

Slide 7

Slide 7 text

Failure #1 Ignorance for culture

Slide 8

Slide 8 text

Domain Subdomain Subdomain Bounded Context Tactical Patterns Aggregate, Entity, Value Object, Repository, Service, Factory Bounded Context Tactical Patterns Aggregate, Entity, Value Object, Repository, Service, Factory Bounded Context Tactical Patterns Aggregate, Entity, Value Object, Repository, Service, Factory Strategic DDD Domain Subdomain Bounded Context Context Map Tactical DDD Aggregate Entity Value Object Repository Service Factory

Slide 9

Slide 9 text

Those are just two aspects of Domain Driven Design

Slide 10

Slide 10 text

ATTITUDE DDD is a culture for domain modeling Strategic DDD Domain Subdomain Bounded Context Context Map Tactical DDD Aggregate Entity Value Object Repository Service Factory

Slide 11

Slide 11 text

DDD is a culture for domain modeling Strategic DDD Domain Subdomain Bounded Context Context Map Tactical DDD Aggregate Entity Value Object Repository Service Factory Explicit->implicit Continuous Learning Evolutionary Design Compare Models Language Psychological Safety Collaboration Low entrance barrier

Slide 12

Slide 12 text

When the foundation is gone you no langer have a solid base for modeling

Slide 13

Slide 13 text

Failure #2 DDDfall

Slide 14

Slide 14 text

The promise: Time to market with DDD Photo by Campful on Unsplash

Slide 15

Slide 15 text

We aRE AgILe wE aRE dOIng SCrUM Photo by Kelly Sikkema on Unsplash

Slide 16

Slide 16 text

Photo by Michael Plöd

Slide 17

Slide 17 text

DDD in a waterfall Photo by Ingo Doerrie on Unsplash

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

https://github.com/ddd-crew/ddd-starter-modelling-process

Slide 20

Slide 20 text

Failure #3 Lack of domain experts

Slide 21

Slide 21 text

No access to domain knowledge means No Domain Driven Design

Slide 22

Slide 22 text

Domain Expertise can sometimes be hidden in interesting spots that you don’t expect

Slide 23

Slide 23 text

Failure #4 Uncollaborative Modelling

Slide 24

Slide 24 text

Source: https://amplitude.com/blog/journey-to-product-teams-infographic

Slide 25

Slide 25 text

Source: https://amplitude.com/blog/journey-to-product-teams-infographic

Slide 26

Slide 26 text

Use collaborative modeling methods with a low entrance barrier Image for example mapping taken from: https://openpracticelibrary.com/practice/example-mapping/ Image for user story mapping taken from: https://www.hanssamios.com/dokuwiki/how_do_we_build_and_maintain_context_when_all_we_have_is_a_backlog_list

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

Failure #5 Rebranding

Slide 29

Slide 29 text

„Basically we’ve been doing DDD for ages already“

Slide 30

Slide 30 text

Object Oriented Analysis and Design was nouns irst

Slide 31

Slide 31 text

EventStorming is verbs irst

Slide 32

Slide 32 text

Failure #6 Code allergy

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

Mind the code probe!!!

Slide 35

Slide 35 text

But we need a good design irst

Slide 36

Slide 36 text

Photo by Michael Plöd

Slide 37

Slide 37 text

Go for code early, prototype, fail, prototype again, fail again, re ine the prototype, re lect your strategic design based on those learnings, learn, go to prod, learn, refactor the code, learn, learn, learn, learn, …

Slide 38

Slide 38 text

Failure #7 Pattern stubbornness

Slide 39

Slide 39 text

Someone: „You are only doing true DDD if you strictly stick to hexagonal architecture and the tactical patterns everywhere, no exceptions!“

Slide 40

Slide 40 text

A gentle comment…

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

Mind the purpose … A Bounded Context is a boundary for a model expressed in a consistent language tailored around a speci ic purpose

Slide 43

Slide 43 text

If the purpose of a Bounded Context doesn’t call for some of the patterns, don’t use them. Understanding this, acknowledging it and designing your software accordingly is so much more about DDD than blindly sticking to some patterns because they were in a blue book (which is amazing, no diss!).

Slide 44

Slide 44 text

Failure #8 Silver Bullet Thinking

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

This book is important, a (probably) timeless classic in IT literature. But it’s not a bible and shouldn’t be treated like one.

Slide 47

Slide 47 text

Domain Driven Design is not a silver bullet

Slide 48

Slide 48 text

- George E. P. Box - All models are wrong, but some are useful

Slide 49

Slide 49 text

Failure #9 Terminology ignorance

Slide 50

Slide 50 text

Some IT conference Registration of visitors Lunch planning Printing of badges Room planning Selling tickets Handling of payments

Slide 51

Slide 51 text

YOU at some IT conference Registration of visitors Lunch planning Printing of badges Room planning Selling tickets Handling of payments

Slide 52

Slide 52 text

Don’t Repeat Yourself

Slide 53

Slide 53 text

YOU at some IT conference Registration of visitors Lunch planning Printing of badges Room planning Selling tickets Handling of payments

Slide 54

Slide 54 text

Bounded Context A Bounded Context is a boundary for a model expressed in a consistent language tailored around a speci ic purpose

Slide 55

Slide 55 text

This has no purpose at all and the language is also not speci ic here

Slide 56

Slide 56 text

Maybe those are interesting bounded context candidates? Event Management Badges Ticket Sales

Slide 57

Slide 57 text

Failure #10 Developer (miss)experience

Slide 58

Slide 58 text

https://github.com/ddd-crew/ddd-starter-modelling-process

Slide 59

Slide 59 text

https://github.com/ddd-crew/ddd-starter-modelling-process You won’t achieve quick learning cycles with a horrible developer experience

Slide 60

Slide 60 text

Failure #11 Hesitance to kill darlings

Slide 61

Slide 61 text

A story of a brilliant manager during a 5 day offsite workshop series

Slide 62

Slide 62 text

Day 1: EventStorming Photo by Michael Plöd

Slide 63

Slide 63 text

Day 2: (Sub)Domains Photo by Michael Plöd

Slide 64

Slide 64 text

Day 3: Bounded Contexts Photo by Michael Plöd

Slide 65

Slide 65 text

Day 4: Trashing Bounded Contexts Photo by Jilbert Ebrahimi on Unsplash

Slide 66

Slide 66 text

Manager: „this looks totally different … where are yesterdays Bounded Contexts“ Team: „we learned something and trashed them for another design“ Day 5: Questions

Slide 67

Slide 67 text

Day 5: A toast to the dead contexts !

Slide 68

Slide 68 text

Get rid of unsuitable designs

Slide 69

Slide 69 text

Failure #12 Fullblown DDD

Slide 70

Slide 70 text

Let’s do a DDD project and apply everything.

Slide 71

Slide 71 text

An interesting path Photo by Michael Plöd

Slide 72

Slide 72 text

To Hekla, one of Icelands most dangerous volcanos Photo by Michael Plöd

Slide 73

Slide 73 text

Don’t do full blown DDD just for the sake of it. Just use the concepts that solve your problems. Photo by Michael Plöd

Slide 74

Slide 74 text

Get my DDD book cheaper Book Voucher: 7.99 instead of (min) 9.99 http://leanpub.com/ddd-by-example/c/speakerdeck

Slide 75

Slide 75 text

Krischerstr. 100 40789 Monheim +49 2173 3366-0 Ohlauer Str. 43 10999 Berlin Ludwigstr. 180E 63067 Offenbach Kreuzstr. 16 80331 München Hermannstrasse 13 20095 Hamburg Erftstr. 15-17 50672 Köln Königstorgraben 11 90402 Nürnberg innoQ Deutschland GmbH www.innoq.com Thank you! Michael Plöd E-Mail: [email protected] Socials: @[email protected] LinkedIn: https://www.linkedin.com/in/michael-ploed/ German version of Team Topologies incl. the Remote Team Interactions Workbook Translated by me Release through O’Reilly Germany in approx. November 2023