Damian Garstecki

Outbox

Cover image for Getting Free Outbox with Spring Modulith
4 min read

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. …

spring boot architecture ddd