Sanntidsdeling av data i en API- lst verden What is event driven? - - PowerPoint PPT Presentation

sanntidsdeling av data i en api l st verden what is event
SMART_READER_LITE
LIVE PREVIEW

Sanntidsdeling av data i en API- lst verden What is event driven? - - PowerPoint PPT Presentation

Sanntidsdeling av data i en API- lst verden What is event driven? Wait Signal += (event) => you say; Business TimeSeries / Discreet Truth of the system DataPoints Named intentionally Measurements Represents the domain


slide-1
SLIDE 1

Sanntidsdeling av data i en API-løst verden

slide-2
SLIDE 2
slide-3
SLIDE 3

What is event driven?

Wait Signal

slide-4
SLIDE 4
slide-5
SLIDE 5

+= (event) => you say;

Business

  • Truth of the system
  • Named intentionally
  • Represents the domain

language

  • Historical facts

TimeSeries / Discreet

  • DataPoints
  • Measurements
  • Consumer decides frequency
  • Can be observed
  • Transient
slide-6
SLIDE 6

Our road has been paved with…

slide-7
SLIDE 7

Event Sourcing

slide-8
SLIDE 8

Traditional Database

BankAccount Id: 123 Owner: Jane Doe Balance: $10

slide-9
SLIDE 9

Event Sourcing

BankAccountOpened Id: 123 Owner: John Doe DepositPerformed Id: 123 Amount: $20 OwnerChanged Id: 123 NewOwner: Jane Doe WithdrawalPerformed Id: 123 Amount: $10

slide-10
SLIDE 10

Event Store

«Historical record»

slide-11
SLIDE 11

Streams

All

BankAccountOpened DepositPerformed OwnerChanged WithdrawalPerformed MoneyTransferred

Account Details

BankAccountOpened OwnerChanged

Account Ledger

DepositPerformed WithdrawalPerformed MoneyTransferred

slide-12
SLIDE 12

Positioning

BankAccountOpened Id: 123 Owner: John Doe DepositPerformed Id: 123 Amount: $20 OwnerChanged Id: 123 NewOwner: Jane Doe WithdrawalPerformed Id: 123 Amount: $10

Processor A Position: 3 Processor B Position: 1 Processor C Position: 0

slide-13
SLIDE 13

Restoring Objects

BankAccountOpened Id: 123 Owner: John Doe

Projects to

BankAccount Id: 123 Owner: John Doe Balance: $0

slide-14
SLIDE 14

Restoring Objects

BankAccountOpened Id: 123 Owner: John Doe DepositPerformed Id: 123 Amount: $20

Projects to

BankAccount Id: 123 Owner: John Doe Balance: $20

slide-15
SLIDE 15

Restoring Objects

BankAccountOpened Id: 123 Owner: John Doe DepositPerformed Id: 123 Amount: $20 OwnerChanged Id: 123 NewOwner: Jane Doe

Projects to

BankAccount Id: 123 Owner: Jane Doe Balance: $20

slide-16
SLIDE 16

Restoring Objects

BankAccountOpened Id: 123 Owner: John Doe DepositPerformed Id: 123 Amount: $20 OwnerChanged Id: 123 NewOwner: Jane Doe WithdrawalPerformed Id: 123 Amount: $10

Projects to

BankAccount Id: 123 Owner: Jane Doe Balance: $10

slide-17
SLIDE 17

Event Horizon

slide-18
SLIDE 18

Microservices

Backend

Storage

Frontend

Microservice A

Backend

Storage

Frontend

Microservice B Fabric

slide-19
SLIDE 19

Migrations

BankAccountOpened { Owner } DebitBankAccountOpened { Owner Description } Rename Default value

slide-20
SLIDE 20

Private vs public

BankAccountOpened DepositPerformed OwnerChanged WithdrawalPerformed MoneyTransferred BalanceChanged

All Other system

slide-21
SLIDE 21

Event Discovery

slide-22
SLIDE 22

Open events - interoperability

slide-23
SLIDE 23
slide-24
SLIDE 24

GDPR

slide-25
SLIDE 25

Isolating PII

BankAccountOpened { Firstname Lastname SocialSecurityNumber } PII storage Event in all stream

slide-26
SLIDE 26

Isolating PII - streams

BankAccountOpened { Firstname Lastname SocialSecurityNumber } PII mutable stream Event in all stream

slide-27
SLIDE 27

Microservice F Microservice E Microservice A

gRPC Event Source Connector

Domain TimeSeries Your Code SDK Runtime

Event Store Transaction Coordinator Event Horizon Microservice B Event Handlers Microservice C Microservice D

DataPoint Manager

Observer Event Source Event Horizon Event Store

slide-28
SLIDE 28

Application 1 Application 2

Microservice A

Your Code SDK Runtime

Supert App / Portal

Connectors

External

Legacy Systems

Microservice A

Your Code SDK Runtime

Read Cache Event Store

Microservice B

Your Code SDK Runtime

Read Cache Event Store Read Cache Event Store

Fabric

slide-29
SLIDE 29

www.dolittle.com