MysticMind.dev
Home Posts Projects Uses About
ESC
Type to search across all posts
    No results found
    ↑↓ navigate ↵ open esc close
    Home Posts Projects Uses About
    1. Home
    2. /
    3. Posts
    4. /
    5. #dcb

    #dcb

    4 posts

    May 29, 2026 · 6 min read

    Dynamic Consistency Boundary in Marten, Part 1: The aggregate trap

    The structural problem DCB solves: business rules that span multiple aggregates and cannot be defended by per-stream optimistic concurrency.

    martendb dotnet event-sourcing dcb
    May 29, 2026 · 9 min read

    Dynamic Consistency Boundary in Marten, Part 2: Implementation with plain Marten

    We build the coupon redemption command from Part 1 using Marten's DCB API: tag types, BoundaryAggregate, FetchForWritingByTags, and the explicit ConcurrencyException retry cycle.

    martendb dotnet event-sourcing dcb
    May 29, 2026 · 11 min read

    Dynamic Consistency Boundary in Marten, Part 3: Less ceremony with Wolverine

    We rebuild the redemption command from Part 2 using Wolverine.HTTP with a [WolverinePost] endpoint, where the HTTP route, the DCB consistency boundary, and the business decision live in one static method. Includes an Alba HTTP test.

    martendb dotnet event-sourcing dcb
    May 29, 2026 · 17 min read

    Dynamic Consistency Boundary in Marten, Part 4: Production considerations

    Tag storage modes, the global-lock failure mode of over-broad queries, tag governance, schema evolution, incremental migration from existing aggregates, and when DCB is the wrong tool.

    martendb dotnet event-sourcing dcb

    Crafted with in Bangalore

    Ideas brewed over fresh filter coffee

    © 2026 Babu Annamalai. All rights reserved.