Simplifying The Read Model Slides
Simplifying The Read Model Slides
Vladimir Khorikov
@vkhorikov www.enterprisecraftsmanship.com
Agenda
Commands,
queries,
handlers,
and
decorators
Agenda
Simplicity
Performance
Scalability
Agenda
Commands,
queries, Simplifying
handlers, the read
and model
decorators
The State of the Read Model
Writes Reads
Separation of the Domain Model
CQRS
Writes Reads
App
API
services
Domain model
overcomplication
Commands
Client Create
Queries
Database
Server
Not here
No need in encapsulation
No data modifications = No need in abstractions
Recap: Simplifying the Read Model
No need in DDD
Recap: Simplifying the Read Model
Commands
Client Create
Queries
Database
Server
Thin wrapper on
top of the DB
Recap: Simplifying the Read Model
Complex SQL
queries
Vendor-specific
Queries
features
Stored
procedures
Recap: Simplifying the Read Model
There’s no need in
encapsulation if you
don't modify any data
Recap: Simplifying the Read Model
Simplicity
Performance
Scalability
The Read Model and the Onion Architecture
Entities
Aggregates
Value Objects
+ Commands and queries
Domain Events
Pure Domain
Services
Repositories
Impure Domain
Services
Application
Services
UI
The Read Model and the Onion Architecture
Repositories
Impure Domain
Services
Application
Services DTOs go here
UI
The Read Model and the Onion Architecture