Slide 1

Slide 1 text

@YourTwitterHandle #YourSessionHashtag Gayathri Thiyagarajan & Andrew Harmel-Law, Capgemini UK http://capgemini.github.io Harnessing Domain Driven Design for Distributed Systems @gaythu_rajan / @al94781 #harnessing_ddd

Slide 2

Slide 2 text

cc: kennyma*c - h-ps://www.flickr.com/photos/99472898@N00 @gaythu_rajan / @al94781 #harnessing_ddd Who are we?

Slide 3

Slide 3 text

Who are we? The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again. @gaythu_rajan / @al94781 #harnessing_ddd

Slide 4

Slide 4 text

“Microservice”? @gaythu_rajan / @al94781 #harnessing_ddd

Slide 5

Slide 5 text

“Microservice”? (cont.) @gaythu_rajan / @al94781 #harnessing_ddd

Slide 6

Slide 6 text

“Microservice”? (cont.) @gaythu_rajan / @al94781 #harnessing_ddd

Slide 7

Slide 7 text

“Microservice”? (cont.) @gaythu_rajan / @al94781 #harnessing_ddd

Slide 8

Slide 8 text

“Microservice”? (cont.) @gaythu_rajan / @al94781 #harnessing_ddd

Slide 9

Slide 9 text

“Microservice”? (cont.) @gaythu_rajan / @al94781 #harnessing_ddd

Slide 10

Slide 10 text

Microservices ROCK! cc: RaeAllen - h-ps://www.flickr.com/photos/30628871@N00 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 11

Slide 11 text

Microservices are HARD @gaythu_rajan / @al94781 #harnessing_ddd

Slide 12

Slide 12 text

“Ge;ng service boundaries wrong can result in having to make lots of changes in service-service collaboraEon. An expensive operaEon.” from Sam Newman, “Building Microservices” (secEon: When shouldn’t you use Microservices) Boundaries are HARDEST @gaythu_rajan / @al94781 #harnessing_ddd

Slide 13

Slide 13 text

Microservices LOVE DDD cc: {AndreaRenee} - h-ps://www.flickr.com/photos/30282864@N02 “Despite the hype [microservices] probably giv[e] us the best environment we have ever had for doing Domain-Driven Design” (Interview with Eric Evans at 2015 DDD Exchange) @gaythu_rajan / @al94781 #harnessing_ddd

Slide 14

Slide 14 text

cc: taberandrew - h-ps://www.flickr.com/photos/88442983@N00 Unfortunately... @gaythu_rajan / @al94781 #harnessing_ddd

Slide 15

Slide 15 text

Some steps... cc: marsupium photography - h-ps://www.flickr.com/photos/43405950@N07 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 16

Slide 16 text

The Core How DDD helps our CODE cc: Laurence Vagner - h-ps://www.flickr.com/photos/86078191@N00 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 17

Slide 17 text

Ubiquitous Language cc: mag3737 - h-ps://www.flickr.com/photos/50318388@N00 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 18

Slide 18 text

Hands-On Modellers cc: jovike - h-ps://www.flickr.com/photos/49503078599@N01 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 19

Slide 19 text

The Misapplied How DDD helps our overall Architecture cc: juhansonin - h-ps://www.flickr.com/photos/38869431@N00 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 20

Slide 20 text

The Important Bits •  Models •  Aggregates •  Contexts •  Bounded Contexts •  Context Maps @gaythu_rajan / @al94781 #harnessing_ddd

Slide 21

Slide 21 text

Shared Payment Services Our Case Study: cc: Khánh Hmoong - h-ps://www.flickr.com/photos/7997148@N05 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 22

Slide 22 text

Shared Payment Services @gaythu_rajan / @al94781 #harnessing_ddd

Slide 23

Slide 23 text

@gaythu_rajan / @al94781 #harnessing_ddd Shared Payment Services

Slide 24

Slide 24 text

@gaythu_rajan / @al94781 #harnessing_ddd Shared Payment Services

Slide 25

Slide 25 text

@gaythu_rajan / @al94781 #harnessing_ddd Shared Payment Services

Slide 26

Slide 26 text

Models cc: Rob Swatski - h-ps://www.flickr.com/photos/50946274@N02 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 27

Slide 27 text

@gaythu_rajan / @al94781 #harnessing_ddd

Slide 28

Slide 28 text

@gaythu_rajan / @al94781 #harnessing_ddd

Slide 29

Slide 29 text

@gaythu_rajan / @al94781 #harnessing_ddd

Slide 30

Slide 30 text

@gaythu_rajan / @al94781 #harnessing_ddd

Slide 31

Slide 31 text

@gaythu_rajan / @al94781 #harnessing_ddd

Slide 32

Slide 32 text

@gaythu_rajan / @al94781 #harnessing_ddd

Slide 33

Slide 33 text

Aggregates cc: J-W Brown - h-ps://www.flickr.com/photos/13797487@N00 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 34

Slide 34 text

@gaythu_rajan / @al94781 #harnessing_ddd

Slide 35

Slide 35 text

Contexts cc: pe*tshoo - h-ps://www.flickr.com/photos/29426084@N00 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 36

Slide 36 text

@gaythu_rajan / @al94781 #harnessing_ddd

Slide 37

Slide 37 text

@gaythu_rajan / @al94781 #harnessing_ddd

Slide 38

Slide 38 text

Bounded Contexts cc: bryce_edwards - h-ps://www.flickr.com/photos/98185064@N00 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 39

Slide 39 text

@gaythu_rajan / @al94781 #harnessing_ddd

Slide 40

Slide 40 text

@gaythu_rajan / @al94781 #harnessing_ddd

Slide 41

Slide 41 text

Context Maps cc: roger4336 - h-ps://www.flickr.com/photos/24736216@N07 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 42

Slide 42 text

@gaythu_rajan / @al94781 #harnessing_ddd

Slide 43

Slide 43 text

@gaythu_rajan / @al94781 #harnessing_ddd

Slide 44

Slide 44 text

Why Aggregates? @gaythu_rajan / @al94781 #harnessing_ddd

Slide 45

Slide 45 text

@gaythu_rajan / @al94781 #harnessing_ddd Aggregate == Microservice

Slide 46

Slide 46 text

@gaythu_rajan / @al94781 #harnessing_ddd Aggregate == Microservice

Slide 47

Slide 47 text

But, Aggregate != Microservice (not always) @gaythu_rajan / @al94781 #harnessing_ddd

Slide 48

Slide 48 text

@gaythu_rajan / @al94781 #harnessing_ddd But, Aggregate != Microservice (not always)

Slide 49

Slide 49 text

@gaythu_rajan / @al94781 #harnessing_ddd

Slide 50

Slide 50 text

1.  Draw a Model and begin to implement it cc: Muffet - h-ps://www.flickr.com/photos/53133240@N00 An Approach @gaythu_rajan / @al94781 #harnessing_ddd

Slide 51

Slide 51 text

1.  Draw a Model and begin to implement it 2.  As you draw it and code it, listen to the Language and culEvate your Model accordingly cc: Muffet - h-ps://www.flickr.com/photos/53133240@N00 An Approach @gaythu_rajan / @al94781 #harnessing_ddd

Slide 52

Slide 52 text

1.  Draw a Model and begin to implement it 2.  As you draw it and code it, listen to the Language and culEvate your Model accordingly 3.  IdenEfy your Aggregates - these are your starter Microservices cc: Muffet - h-ps://www.flickr.com/photos/53133240@N00 An Approach @gaythu_rajan / @al94781 #harnessing_ddd

Slide 53

Slide 53 text

cc: Muffet - h-ps://www.flickr.com/photos/53133240@N00 An Approach @gaythu_rajan / @al94781 #harnessing_ddd 1.  Draw a Model and begin to implement it 2.  As you draw it and code it, listen to the Language and culEvate your Model accordingly 3.  IdenEfy your Aggregates - these are your starter Microservices 4.  When you hit pain points (indicated by the Language) split into different Bounded Contexts to resolve

Slide 54

Slide 54 text

1.  Draw a Model and begin to implement it 2.  As you draw it and code it, listen to the Language and culEvate your Model accordingly 3.  IdenEfy your Aggregates - these are your starter Microservices 4.  When you hit pain points (indicated by the Language) split into different Bounded Contexts to resolve 5.  Revisit your Bounded Contexts now you know more about how each Aggregate - you may end up spli;ng them cc: Muffet - h-ps://www.flickr.com/photos/53133240@N00 An Approach @gaythu_rajan / @al94781 #harnessing_ddd

Slide 55

Slide 55 text

Done? cc: WarzauWynn - h-ps://www.flickr.com/photos/94246031@N00 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 56

Slide 56 text

The Ignored How DDD helps our Teams Organise cc: aha42 | tehaha - h-ps://www.flickr.com/photos/31549162@N05 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 57

Slide 57 text

@gaythu_rajan / @al94781 #harnessing_ddd Customer-Supplier Partnership Anti-Corruption Layer Upstream Downstream

Slide 58

Slide 58 text

Shared Kernel Separate Ways An*- Corrup*on Layer Partner- ship Conform- ist Open Host Service Customer / Supplier Control Over Associated Teams CommunicaEons Commitment / Capability of Teams @gaythu_rajan / @al94781 #harnessing_ddd

Slide 59

Slide 59 text

Shared Kernel Separate Ways An*- Corrup*on Layer Partner- ship Conform- ist Open Host Service Customer / Supplier Control Over Associated Teams CommunicaEons Commitment / Capability of Teams @gaythu_rajan / @al94781 #harnessing_ddd

Slide 60

Slide 60 text

Shared Kernel Separate Ways An*- Corrup*on Layer Partner- ship Conform- ist Open Host Service Customer / Supplier Control Over Associated Teams CommunicaEons Commitment / Capability of Teams @gaythu_rajan / @al94781 #harnessing_ddd

Slide 61

Slide 61 text

Upstream/Downstream cc: archer10 (Dennis) (73M Views) - h-ps://www.flickr.com/photos/22490717@N02 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 62

Slide 62 text

Partnership cc: prac*calowl - h-ps://www.flickr.com/photos/55046645@N00 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 63

Slide 63 text

@gaythu_rajan / @al94781 #harnessing_ddd Partnership

Slide 64

Slide 64 text

@gaythu_rajan / @al94781 #harnessing_ddd

Slide 65

Slide 65 text

Customer-Supplier cc: TheeErin - h-ps://www.flickr.com/photos/27073477@N00 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 66

Slide 66 text

@gaythu_rajan / @al94781 #harnessing_ddd Customer-Supplier

Slide 67

Slide 67 text

@gaythu_rajan / @al94781 #harnessing_ddd @gaythu_rajan / @al94781 #harnessing_ddd

Slide 68

Slide 68 text

An*-Corrup*on Layer @gaythu_rajan / @al94781 #harnessing_ddd

Slide 69

Slide 69 text

@gaythu_rajan / @al94781 #harnessing_ddd Anti-Corruption Layer Upstream Downstream

Slide 70

Slide 70 text

@gaythu_rajan / @al94781 #harnessing_ddd

Slide 71

Slide 71 text

Done Done cc: jayneandd - h-ps://www.flickr.com/photos/8180853@N07 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 72

Slide 72 text

Take Home Messages cc: Manoj Kengudelu - h-ps://www.flickr.com/photos/11767573@N02 •  Find the right Microservices - or you’ll pine for the Monolith @gaythu_rajan / @al94781 #harnessing_ddd

Slide 73

Slide 73 text

Take Home Messages cc: Manoj Kengudelu - h-ps://www.flickr.com/photos/11767573@N02 •  Find the right Microservices - or you’ll pine for the Monolith •  Don’t get confused about BCs - they will fall out if you listen to the Language @gaythu_rajan / @al94781 #harnessing_ddd

Slide 74

Slide 74 text

Take Home Messages •  Find the right Microservices - or you’ll pine for the Monolith •  Don’t get confused about BCs - they will fall out if you listen to the Language •  Organise around your services beger - apply the Strategic Pagerns cc: Manoj Kengudelu - h-ps://www.flickr.com/photos/11767573@N02 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 75

Slide 75 text

Take Home Messages •  Find the right Microservices - or you’ll pine for the Monolith •  Don’t get confused about BCs - they will fall out if you listen to the Language •  Organise around your services beger - apply the Strategic Pagerns •  Be inspired to do more Domain Driven Design cc: Manoj Kengudelu - h-ps://www.flickr.com/photos/11767573@N02 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 76

Slide 76 text

And Finally... cc: oatsy40 - h-ps://www.flickr.com/photos/68089229@N06 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 77

Slide 77 text

Ques*ons Please cc: Derek Bridges - h-ps://www.flickr.com/photos/84949728@N00 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 78

Slide 78 text

Oh, and we (Capgemini ) are hiring! (visit bit.ly/cg-jvm-jobs-ddd) cc: ptrlx - h-ps://www.flickr.com/photos/58615912@N05 @gaythu_rajan / @al94781 #harnessing_ddd

Slide 79

Slide 79 text

Read More... •  hgps://capgemini.github.io/architecture/ microservices-reality-check/ •  hgps://capgemini.github.io/architecture/ why-microservices-are-right-for-us-pt1/ •  hgps://capgemini.github.io/architecture/ microservices-like-change/ •  hgps://capgemini.github.io/architecture/ microservices-gotchas/ cc: Manoj Kengudelu - h-ps://www.flickr.com/photos/11767573@N02 @gaythu_rajan / @al94781 #harnessing_ddd