Slide 1

Slide 1 text

Building µ Roy Cornelissen Xpirit @roycornelissen #TECHDAYSNL #NSERVICEBUS

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

Agenda

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

User interface Business logic Storage External integration

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

Services as a network of independent parts

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

that’s still Coupling!

Slide 10

Slide 10 text

(reliable) Messaging

Slide 11

Slide 11 text

Loose coupling Share contract and schema, not class Temporal decoupling through queued messaging

Slide 12

Slide 12 text

Event driven architecture Services keep their own state Events are used to notify changes Each service will have its own database Services use events to replicate data

Slide 13

Slide 13 text

Sales Billing Shipping SubmitOrder OrderAccepted OrderBilled OrderShipped

Slide 14

Slide 14 text

Costs Latency in data changes Challenge to reconcile in case of disaster No central control of business logic Event driven architecture

Slide 15

Slide 15 text

Should you?

Slide 16

Slide 16 text

Should you? http://martinfowler.com/bliki/MicroservicePremium.html

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

NServiceBus a service bus is an architectural style for integration

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

Where is the bus? Like Ethernet, it’s everywhere!

Slide 21

Slide 21 text

µSvc µSvc µSvc µSvc µSvc µSvc Bus.dll Bus.dll Bus.dll Bus.dll Bus.dll Bus.dll Where is the bus?

Slide 22

Slide 22 text

What is NServiceBus? A .NET framework to help implement SOA microservices with the Service Bus architectural style

Slide 23

Slide 23 text

Abstracts away transport, threading, queues, transactions What is NServiceBus?

Slide 24

Slide 24 text

Focuses on implementing business logic What is NServiceBus?

Slide 25

Slide 25 text

Highly pluggable What is NServiceBus?

Slide 26

Slide 26 text

Started by Udi Dahan Now an open source product from Particular Software What is NServiceBus?

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

Order $$$ Tx App Call 1 of 3 Call 2 of 3 Queue The order is back in the queue

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

? webservice

Slide 38

Slide 38 text

webservice

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

audit queue endpoint 1 endpoint 2 endpoint 3 ServiceControl ServicePulse ServiceInsight

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

Wrap up

Slide 44

Slide 44 text

Wrap up

Slide 45

Slide 45 text

Wrap up

Slide 46

Slide 46 text

Wrap up

Slide 47

Slide 47 text

@roycornelissen roycornelissen.wordpress.com [email protected]

Slide 48

Slide 48 text

@roycornelissen roycornelissen.wordpress.com [email protected] xpir.it/XpiritMagazine