An OrderCompletedEvent originally carried an order ID. Over three years, developers added user profiles, order items, invoice receipts, and audit histories directly into the event payload. Fat event…
Testing that domain events are published should not require spinning up RabbitMQ containers in unit test suites or mocking complex message transport interfaces. An in-memory spy replaces dozens…
An additive-only message policy, and an optional field from 2021 that every consumer now requires. An optional field that everybody depends on is a required field with no…
An event dispatched on every order since 2021, subscribed to by a module that no longer exists. The monthly report had been correct since the module was discontinued…
A second host, and a relay that must not run twice against the same rows. The modulo on a hash of the aggregate identifier preserves per-aggregate ordering while…
A queue consumer removed along with the module it belonged to, and the queue that kept receiving messages. A TTL on a queue turns an unconsumed backlog into…
A handler documented as idempotent since 2022, which was not, and a redelivery that proved it. A docblock claiming idempotency is a claim and not a mechanism, and…
An OrderPlaced event carrying a formatted currency string, which is a decision about a locale baked into a permanent record. The formatted string was convenient for the one…