How do Repositories fit with CQRS?

I’ve read about CQRS systems that maintain a simple key value store on the command side to represent an application’s state, and others that merely correlate messages (using some sort of saga) and utilise the query store to represent an applications state instead. Either way there’ll no doubt be a persistence technology involved with these … Read more

CQRS Commands and Queries – Do they belong in the domain?

Commands and Events can be of very different concerns. They can be technical concerns, integration concerns, domain concerns… I assume that if you ask about domain, you’re implementing a domain model (maybe even with Domain Driven Design). If this is the case I’ll try to give you a really simplified response, so you can have … Read more

What specific issue does the repository pattern solve?

I think the term “repository” is commonly thought of in the way the “repository pattern” is described by the book Patterns of Enterprise Application Architecture by Martin Fowler. A Repository mediates between the domain and data mapping layers, acting like an in-memory domain object collection. Client objects construct query specifications declaratively and submit them to … Read more

What is a practical way to model lookup tables in Domain Driven Design (DDD)?

You may want to look into the concept of Command Query Separation. I wouldn’t worry about typed repositories for lookup values, but I’d still probably use DTO type classes over datasets etc… You may want to spend some time reading Greg Young’s blogs starting from this one to the present. He doesn’t talk about filling … Read more

Domain Driven Design vs Model Driven Architecture

Don’t disagree with most of the above although it’s perhaps worth expanding a little. The single most important concept in DDD is to focus on the problem domain. To put technology obsession to the side and concentrate primarily on modelling the problem you’re trying to solve. So put ajax, ORMs, databases, frameworks etc. into the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)