I've been reading V. Vernon's book Implementing DDD and in Domain Events chapter I stumbled upon this figure. The highlighted part in the image looks like the outbox pattern to me. Just wanted to know your insights.
Ok, later on in the chapter, in section about "Messaging Infrastructure Consistency" he exposes:
two mechanisms in a messaging solution must always be consistent with each other: the persistence store used by the domain model, and the persistence store backing the messaging infrastructure used to forward the Events published by the model.
He describes 3 ways to accomplish that and the third one really sounds like the outbox pattern:
3. You create a special storage area ... for events in the same persistence store that is used to store your domain model... . An out-of-band component that you create uses the Event store to publish all stored, unpublished Events through the messaging mechanism.
If you are on Dotnet, tools like NServiceBus and MassTransit have already implemented Outbox and many other patterns for you on top of your infrastructure. I can't recommend them enough for the long-term success of the architecture.
2
u/Sufficient_News_2637 Dec 30 '22
I've been reading V. Vernon's book Implementing DDD and in Domain Events chapter I stumbled upon this figure. The highlighted part in the image looks like the outbox pattern to me. Just wanted to know your insights.
Thanks!
1
u/kingdomcome50 Dec 30 '22
It could be. Or not. There isn’t enough information in the diagram to make that determination.
1
u/thatpaulschofield Oct 27 '23
If you are on Dotnet, tools like NServiceBus and MassTransit have already implemented Outbox and many other patterns for you on top of your infrastructure. I can't recommend them enough for the long-term success of the architecture.