RSS feed for this section

Archive | CQRS

Rapid Development with Hibernate in CQRS Read Models

cqrs_hibernate

In this post I’m going to share a few tricks for using Hibernate tooling in CQRS read models for rapid development. Why Hibernate? Hibernate is extremely popular. It’s also deceptively easy on the outside and fairly complex on the inside. It makes it very easy get started without in-depth understanding, misuse, and discover problems when […]

Persistence in CQRS Read Models

es_cqrs_projection_700

One of the biggest benefits of CQRS is the ability to implement multiple read models. Business rules and the domain model are safe, clean and isolated over in the write model. They are not getting in the way of view models, which can selectively pick the pieces they are interested in, freely reshape them, and […]

Writing an Event-Sourced CQRS Read Model

es_cqrs_projection_funnel_300_2

Discussions about event sourcing and CQRS seem to usually focus on the overall system architecture or various flavors of domain-driven design in CQRS context. However, the read models are often neglected, even though there are some interesting considerations on this side as well. In this post we’re going to present a sample implementation of populating […]

Achieving Consistency in CQRS with Linear Event Store

linear_read_models

In a recent project involving an event-sourced CQRS system, we decided to do some things that seem somewhat unusual compared to solutions mostly talked about. However, they let us achieve some nice properties that would be hard (if possible at all) otherwise. Event Store as Regular Table We decided to implement the event store as […]