Listen to yourself pattern: Is it an alternative to the Outbox Pattern?
So, you need consistency between making state changes to your database and publishing events to a message broker for other services to consume. A common pattern to handle this situation is the Outbox Pattern, but another pattern called Listen to Yourself tries to solve the consistency issue. Does it work? Well lets find out. YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. Problem: Consistency Here’s the problem. A possible consistency problem exists because you’re interacting and trying to perform two non-atomic operations. You need to save… Read More »Listen to yourself pattern: Is it an alternative to the Outbox Pattern?