A message shape is a contract with every consumer that exists and every consumer that is mid-deploy. Adding an optional field is safe because an old consumer ignores…
Publishing to a broker inside a database transaction is two systems and one commit, which cannot be made atomic. The index on (published_at, id) with nulls first is…
Every broker worth using delivers at least once, and every consumer that does not say how it handles that is claiming something it has not checked. Writing the…
Testing the effect couples the test to the listener, and testing the event tests the thing the code under test is actually responsible for. The listener gets its…