<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>effect-cqrs blog</title><description>Posts about CQRS and event sourcing, with examples that run on effect-cqrs.</description><link>https://effect-cqrs.dambox.ch/</link><item><title>Change the rules, keep the history</title><link>https://effect-cqrs.dambox.ch/blog/change-the-rules-keep-the-history/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/change-the-rules-keep-the-history/</guid><description>The loan period goes from four weeks to three, and every open loan&apos;s due date moves with it. Rules change all the time: store the decisions they made, run them only when deciding, and never in a projection.</description><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Fix the code, not the data</title><link>https://effect-cqrs.dambox.ch/blog/fix-the-code-not-the-data/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/fix-the-code-not-the-data/</guid><description>A loans table with a bug that loses loans, fixed twice: in a database, where the fix stops the damage and the lost rows stay lost, and in a read model, where a replay brings them back.</description><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Forget me, from the backups too</title><link>https://effect-cqrs.dambox.ch/blog/forget-me-from-the-backups-too/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/forget-me-from-the-backups-too/</guid><description>A member asks to be erased. Deleting her row is easy, and her name is still in every backup for months, ready to come back with the next restore. Crypto-shredding erases her from the backups you already have.</description><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate></item><item><title>From a table to a log</title><link>https://effect-cqrs.dambox.ch/blog/from-a-table-to-a-log/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/from-a-table-to-a-log/</guid><description>Every real project that adopts event sourcing already has data in tables. Import each row as the first event of its stream, say where it came from, don&apos;t invent the history you never had, and switch writes over one aggregate at a time.</description><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate></item><item><title>I clicked twice</title><link>https://effect-cqrs.dambox.ch/blog/i-clicked-twice/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/i-clicked-twice/</guid><description>A payment request times out and the client sends it again. Disabling the button doesn&apos;t help, a unique column helps half way. Commands that carry their own id, or an id per request, run once however often they arrive.</description><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The bug that won&apos;t reproduce</title><link>https://effect-cqrs.dambox.ch/blog/the-bug-that-wont-reproduce/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/the-bug-that-wont-reproduce/</guid><description>A member can&apos;t borrow anything, and every test passes. The data that triggers the bug is in production, as a history nobody can rebuild by hand. With events, that history is a file: copy the stream into a fixture, and the bug report is a failing test.</description><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The double write</title><link>https://effect-cqrs.dambox.ch/blog/the-double-write/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/the-double-write/</guid><description>Store the loan, then tell the other systems, or the other way round: each order breaks on a bad day, and no transaction spans a database and a broker. With event sourcing the log is already the outbox.</description><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The form that overwrites</title><link>https://effect-cqrs.dambox.ch/blog/the-form-that-overwrites/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/the-form-that-overwrites/</guid><description>Two people edit the same record, and the second save quietly undoes the first. Event sourcing doesn&apos;t fix it by itself: commands that say what changed avoid most collisions, and an expected version catches the rest.</description><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The message that blocks the queue</title><link>https://effect-cqrs.dambox.ch/blog/the-message-that-blocks-the-queue/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/the-message-that-blocks-the-queue/</guid><description>One event a handler can&apos;t read stops everything behind it, at three in the morning. Stop and wait, or set it aside and carry on: when each is right, and how a parked event comes back once the bug is fixed.</description><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The whole thing in a browser tab</title><link>https://effect-cqrs.dambox.ch/blog/the-whole-thing-in-a-browser-tab/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/the-whole-thing-in-a-browser-tab/</guid><description>An aggregate, three read models and a saga run in a React page with no server. A command that can say no, a typed refusal in the component, and time travel in ten lines.</description><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The wrong event</title><link>https://effect-cqrs.dambox.ch/blog/the-wrong-event/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/the-wrong-event/</guid><description>A bug in a command stores wrong due dates for a week. A replay can&apos;t fix it, and editing the log would hide it, so the fix records a correction: one more event, with its reason.</description><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Three ways to read</title><link>https://effect-cqrs.dambox.ch/blog/three-ways-to-read/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/three-ways-to-read/</guid><description>A lent book read from its aggregate, from a read model as it is, and from a read model that waits for the command. Which one is current, when to use each, and how a browser picks one over HTTP.</description><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Two pods, two emails</title><link>https://effect-cqrs.dambox.ch/blog/two-pods-two-emails/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/two-pods-two-emails/</guid><description>The service is scaled to two replicas, and every member gets every email twice. Background work that reads the log has to run in one place, and take over somewhere else when that place goes away.</description><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate></item><item><title>What it looked like last Tuesday</title><link>https://effect-cqrs.dambox.ch/blog/what-it-looked-like-last-tuesday/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/what-it-looked-like-last-tuesday/</guid><description>A member was refused a book that is on the shelf today, and asks why. A table only knows today. The log can show the book as it was at that moment, and every event the request caused, across aggregates.</description><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Read models you can throw away</title><link>https://effect-cqrs.dambox.ch/blog/read-models/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/read-models/</guid><description>Part 3 of the series: view models that follow the log, catch up after a restart, read your own writes, and rebuild from scratch.</description><pubDate>Fri, 13 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Sagas</title><link>https://effect-cqrs.dambox.ch/blog/sagas/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/sagas/</guid><description>Part 4 of the series: borrowing a book touches the member and the book, so a saga coordinates them as a durable workflow.</description><pubDate>Fri, 13 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Tests, schema changes and production</title><link>https://effect-cqrs.dambox.ch/blog/tests-schema-changes-and-production/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/tests-schema-changes-and-production/</guid><description>Part 5 of the series: test aggregates with given, when, then and random commands, change an event&apos;s shape without rewriting the log, move to SQLite or PostgreSQL, and forget a member.</description><pubDate>Fri, 13 Nov 2026 00:00:00 GMT</pubDate></item><item><title>The saga you skipped</title><link>https://effect-cqrs.dambox.ch/blog/the-saga-you-skipped/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/the-saga-you-skipped/</guid><description>Borrowing a book without a saga, in the two ways that look right: one aggregate that records another&apos;s events, and one that calls another&apos;s commands. What breaks, and what the saga does instead.</description><pubDate>Fri, 13 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Why CQRS and event sourcing</title><link>https://effect-cqrs.dambox.ch/blog/why-cqrs-and-event-sourcing/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/why-cqrs-and-event-sourcing/</guid><description>Part 1 of the series: what goes missing when you store only the current state, event sourcing by hand in forty lines, and what CQRS adds on top.</description><pubDate>Fri, 13 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Your first aggregate</title><link>https://effect-cqrs.dambox.ch/blog/your-first-aggregate/</link><guid isPermaLink="true">https://effect-cqrs.dambox.ch/blog/your-first-aggregate/</guid><description>Part 2 of the series: a book as an aggregate, with events as schemas, commands that decide, typed errors, and a store that handles concurrent writers.</description><pubDate>Fri, 13 Nov 2026 00:00:00 GMT</pubDate></item></channel></rss>