Dynamic Consistency Boundaries (DCB) for Event Sourcing

What if we could get rid of the aggregate in event sourcing? The aggregate gives strong consistency, and what happens the day a business rule has to reach across two of them. This post is about that, and about a pattern I’ve come to rely on called Dynamic Consistency Boundaries (DCB). The short version: instead of […]

Can DCB event sourcing be fast and flexible? A Postgres benchmark

Classic event sourcing has a rule: one aggregate, one stream, one consistency boundary. It is simple and it scales, but it is rigid. The moment you need an invariant that spans two aggregates, you are writing sagas and workarounds. Dynamic Consistency Boundaries (DCB) are meant to remove that constraint. The recurring objection is that they […]