greg young on architectural innovation: eventing, event sourcing

25

Upload: skills-matter

Post on 18-Jul-2015

549 views

Category:

Technology


0 download

TRANSCRIPT

Application Services

Data Storage

Domain Object

Client

Remote Facade

Request DTODTO returned

Send up DTOStatus returned

Domain Object

DTO SentAck/Nak Response

Request DTODTO returned

Send DTO Back to Server

Show DTO on Screen

User Interacts With DTO

Application Services

Data Storage

Domain Object

Client

Remote Facade

Request DTODTO returned

Send up DTOStatus returned

Domain Object

Message SentAck/Nak Response

Request DTODTO returned

Send MessagesShow DTO on

Screen

User Interacts With Screen, Build

Messages

Data Storage

Thin Read Layer (Direct to DTO)

Remote Facade

Client

Request DTODTO returned

Data Storage

Application Services

Domain Object

Remote Facade

Domain Object

Client

Message SentAck/Nak Response

Data Storage

Application Services

Domain Object

Remote Facade

Domain Object

Client

Message SentAck/Nak Response

Thin Read Layer (Direct to DTO)

Remote Facade

Request DTODTO returned

Write (Command) Read (Query)

Application Services

Data Storage

Domain Object

Client

Remote Facade

Request DTODTO returned

Send up DTOStatus returned

Domain Object

Data Storage

Application Services

Domain Object

Remote Facade

Domain Object

Client

Message SentAck/Nak Response

Request DTODTO returned

Application Services

Domain Object

Remote Facade

Domain Object

Data Storage

Application Services

Domain Object

Remote Facade

Domain Object

Client

Message SentAck/Nak Response

Thin Read Layer (Direct to DTO)

Remote Facade

Request DTODTO returned

Data Storage

Application Services

Domain Object

Remote Facade

Domain Object

Client

Message SentAck/Nak Response

Thin Read Layer (Direct to DTO)

Remote Facade

Request DTODTO returned

Data StorageEventually

Data Storage

Application Services

Domain Object

Remote Facade

Domain Object Thin Read Layer (Direct to DTO)

Remote Facade

Data Storage

nhibernate

han

dle

rs

Data Storage

Application Services

Domain Object

Remote Facade

Domain Object Thin Read Layer (Direct to DTO)

Remote Facade

Data Storage

nhibernate

han

dle

rs

Data Storage

Application Services

Domain Object

Remote Facade

Domain Object Thin Read Layer (Direct to DTO)

Remote Facade

Data Storage

Even

ts

handlers

han

dle

rs

Purchase Order

Line Items (n)

Shipping Information

Cart Created

3 Items Added

Shipping Information

Added

Purchase Order

AddItemCommand

ChangeAddressEvent

AddItemCommandAddItemEvent

Cart Created

3 Items Added

1Item Removed

Shipping Information

Added

Event Storage

Application Services

Domain Object

Remote Facade

Domain Object Thin Read Layer (Direct to DTO)

Remote Facade

Data Storage

Even

ts

han

dle

rs

Event Storage

Application Services

Domain Object

Remote Facade

Domain Object Thin Read Layer (Direct to DTO)

Remote Facade

Data StorageEvents

Even

ts

han

dle

rs