Getting Free Outbox with Spring Modulith
Why even bother with an outbox for internal events? Early in the app lifecycle you can get away with one big transaction: change domain state, flush, all or nothing is committed. Simple. Then growth hits. New features keep adding more into the persistence context. Optimistic locks start colliding. …