A brief introduction to event sourcing, event collaboration and CQRS. Covers how they may be used together to enable microservice architecture, move data between services, renovate legacy architectures and provide a richer understanding of the entire organisation.
Originally delivered at LAST conference 2016.
4. Jeena deposited $100
Mal withdrew $50
Bron withdrew $60
Overdrawn fee charged of $2
Mal deposited $50
Account
Balance: $ 38
What is the bank balance?
@brentsnook
5. How much has been charged in fees?
Account
Balance: $ 38
@brentsnook
6. @brentsnook
we know that there
are known knowns
but there are also
unknown unknowns
How are we going to use our data?
(the ones we don’t know we don’t know)
@brentsnook
23. SPLITTING THE MONOLITH
• EMIT EVENTS AT KEY PARTS OFTHE PROCESS
• REACTTOTHEMTO ADD EVENT-DRIVEN SEAMS
e e
@brentsnook
24. SPLITTING THE MONOLITH
• EMIT EVENTS AT KEY PARTS OFTHE PROCESS
• REACTTOTHEMTO ADD EVENT-DRIVEN SEAMS
• MOVE RESPONSIBILITY BETWEENTWO SEAMS INTO A NEW SERVICE
e e
@brentsnook
25. SPLITTING THE MONOLITH
• EMIT EVENTS AT KEY PARTS OFTHE PROCESS
• REACTTOTHEMTO ADD EVENT-DRIVEN SEAMS
• MOVE RESPONSIBILITY BETWEENTWO SEAMS INTO A NEW SERVICE
• REPEAT
e e
@brentsnook
26. e e e e e e e e e e e e e e e e
Event Bus
MY GOD, IT’S FULL OF EVENTS …
ATM
Query
Event
Store
Billing
Internet
Banking
Web UI
Internet
Banking
API
Reports
User
Mgmt.
Accounts
Paper
Mail
@brentsnook