Archive For The “WCF” Category
This week I’ve been working on a brownfield Castle-powered WCF service that was creating a separate NHibernate session on every call to a repository object. Abusing NHibernate like this was playing all sorts of hell for our app (e.g. TransientObjectExceptions), and prevented us from using transactions that matched with a logical unit of work, so [...]
In the first two posts I talked about commands and command handlers. Now we need to wire them up to invoke them from your service endpoint. Brownfield CQRS part 1 – Commands Brownfield CQRS part 2 – Command Handlers Brownfield CQRS part 3 – Queries, Parameters and Results Brownfield CQRS part 4 – Command Dispatcher [...]
In the previous two posts, I showed some simple patterns for commands and command handlers. Now let’s talk about the other half of the story: queries! Brownfield CQRS part 1 – Commands Brownfield CQRS part 2 – Command Handlers Brownfield CQRS part 3 – Queries, Parameters and Results Brownfield CQRS part 4 – Command Dispatcher [...]
In my previous post, I described command DTOs and service methods for booking a table at a restaurant. Now, we just need something to interpret this command, and do something useful with it. Brownfield CQRS part 1 – Commands Brownfield CQRS part 2 – Command Handlers Brownfield CQRS part 3 – Queries, Parameters and Results [...]
One question that came up several times at DDD eXchange last week was CQRS: now we understand all the benefits, how do we begin migrating our existing applications towards this sort of architecture? It’s something we’ve been chipping away at at work recently, and over a short series of posts I’d like to share some [...]


