+ All Categories
Home > Technology > Web Front-End CQRS

Web Front-End CQRS

Date post: 14-May-2015
Category:
Upload: emil-cardell
View: 1,137 times
Download: 6 times
Share this document with a friend
Description:
My Web Front-End CQRS slides from Devsum 2012
Popular Tags:
46
Web Front-End CQRS
Transcript
Page 1: Web Front-End CQRS

Web Front-End CQRS

Page 2: Web Front-End CQRS

The crazy architect enters the room

Page 3: Web Front-End CQRS
Page 4: Web Front-End CQRS

”We are doing CQRS!”

Page 5: Web Front-End CQRS

WAT?

Page 6: Web Front-End CQRS

Command and Query Responsibility Segregation

Page 7: Web Front-End CQRS

What?

Page 8: Web Front-End CQRS

Commands can’t return dataQueries can only return data

Page 9: Web Front-End CQRS

And how are we doing that?

Page 10: Web Front-End CQRS

Command HandlersEvent HandlersService busMessage queueEvent storesProjections

Page 11: Web Front-End CQRS

NServiceBusMassTransitMsMQEventStoreRabbitMQCommon Domain

Page 12: Web Front-End CQRS

Front-end?

Page 13: Web Front-End CQRS

Emil [email protected]

Page 14: Web Front-End CQRS

CQRS Web Front-End Journey

Page 15: Web Front-End CQRS

Going from CRUD to CQRS

Page 16: Web Front-End CQRS

Teach our front-end to speak CQRS

Page 17: Web Front-End CQRS

Just in time Front-End CQRS

Page 18: Web Front-End CQRS

Font-end CQRS domination

Page 19: Web Front-End CQRS

Why CQRS?

Page 20: Web Front-End CQRS

ReliabilityScalability

Page 21: Web Front-End CQRS

Reliability is to never loose data and to never go down even if hardware goes down

Page 22: Web Front-End CQRS

Scalability to scale linear by distributing you application to multiple servers

Page 23: Web Front-End CQRS

Separate in to parts only responsible for one thing

Page 24: Web Front-End CQRS

It gives us focus to deliver value faster

Page 25: Web Front-End CQRS

Replaceability

Page 26: Web Front-End CQRS

Distribute

Page 27: Web Front-End CQRS

UI keeps it togeather

Page 28: Web Front-End CQRS

How does a distributed system effect the UI?

Page 29: Web Front-End CQRS

Eventual Consistency

Page 30: Web Front-End CQRS

ΔTserver vs ΔTclient

Page 31: Web Front-End CQRS

In the beginning

Page 32: Web Front-End CQRS
Page 33: Web Front-End CQRS

Same same but different

Page 34: Web Front-End CQRS

Ugly CRUD syntax

Page 35: Web Front-End CQRS

Not separated

Page 36: Web Front-End CQRS

Why FubuMVC?

Page 37: Web Front-End CQRS

Speak the same language as our domain. There is nothing in our domain called controller.

Page 38: Web Front-End CQRS

Separation of concernsone class = one functionRESTishmethods = http methods

Page 39: Web Front-End CQRS
Page 40: Web Front-End CQRS

Questions?

Page 41: Web Front-End CQRS

Reliable

Page 42: Web Front-End CQRS

Scalable

Page 43: Web Front-End CQRS

Replaceable

Page 44: Web Front-End CQRS

Distributed

Page 45: Web Front-End CQRS

Have courage to experiment, respect your peers and keep it simple

Page 46: Web Front-End CQRS

Emil [email protected]

http://mvc.fubu-project.org/http://jquery.com/http://benalman.com/projects/jquery-message-queuing-plugin/


Recommended