+ All Categories
Home > Technology > Cqrs es and friends

Cqrs es and friends

Date post: 22-Jun-2015
Category:
Upload: andrea-magnorsky
View: 7,035 times
Download: 0 times
Share this document with a friend
Popular Tags:
16
CQRS/ES AND FRIENDS Possibly distributed systems... intentionally
Transcript
Page 1: Cqrs es and friends

CQRS/ES AND FRIENDS Possibly distributed systems... intentionally

Page 2: Cqrs es and friends
Page 3: Cqrs es and friends

WHY DO WE NEED YET ANOTHER SHINY?

Is this an Architecture? No: a bunch of patterns

Sorry I don’t cook

Less how should it be, more what should it do

Page 4: Cqrs es and friends
Page 5: Cqrs es and friends

WHY DDD IS RELEVANT

Ubiquitous language

Bounded contexts

Aggregates

If you are looking for intention, there is a way to

persist it

Legacy systems anyone?

Page 6: Cqrs es and friends

IF

I WA

S T

RY

ING

TO

LE

AR

N C

QR

S N

OW

Page 7: Cqrs es and friends

CQRS/ES

CQRS: “Separate command messages that

change state from query messages that read

state.”

Event Sourcing: Capture changes to an

application state as a sequence of events.

Page 8: Cqrs es and friends

AND FRIENDS

Eventual Consistency

Messaging

Page 9: Cqrs es and friends

QUERY

Query Side: asking a question should not change

the answer.

Page 10: Cqrs es and friends

TASK BASED UIS

Page 11: Cqrs es and friends

COMMAND

Tell the system what to do

Has a well defined intention

Page 12: Cqrs es and friends

EVENT

Occurrence

If using messaging, possibility of integration.

Page 13: Cqrs es and friends
Page 14: Cqrs es and friends

CONSEQUENCE

Compensating actions -> there is no big eraser

here

Automatic audit log

Since there are no queries to read… the

aggregate roots have fewer relationship and their

boundaries are better defined

Page 15: Cqrs es and friends

AN EXAMPLE

1. Add Item to cart

2. The product is not in stock

Page 16: Cqrs es and friends

THANKS

Andrea Magnorsky

@silverspoon

www.roundcrisis.com

I wantz sleeps, its

Caturday


Recommended