dgoosens, For databases, there are transactions, that ensure that all things that all related are either stored or are not at all.
This avoids to have partial data snippets polluting or even corrupting your data.Now this gets more complicated when things are stored or messaged into different locations...
This is where the Outbox pattern comes into play
Read more about it in this excellent article by @dgafka :
https://blog.devgenius.io/making-your-application-stable-with-outbox-pattern-efedbea329e5
Add comment