2023/05/16/from-domain-events-to-infrastructure-thinking-out-loud-about-possible-approaches-i-dont-hate/ #93
Replies: 1 comment 3 replies
-
Hi Joao! Thanks for the interesting article and great analysis of the event publishing problem! ;) I'm curious why exactly are you inclining to go with the approach #3. I feel like you try to publish correct integration events asap and that's why you prefer solution #3. But why is this such a big priority for you? I think that a processing lag between persisting of the aggregate and publishing integration events is completely acceptable thing, if he integration events are being processed in the same order in which the aggregate was being persisted. In this regard I would intuitively choose solution #2. I wouldn't really mind additional infrastructure hops/cost, because I think it would be neglectable and I think that it's better to have more shorter and smaller transactions for better scalability, since database is almost always the bottleneck. But as you mentioned, maybe #3 is better suited for you exact use case. It's just interesting for me to observe the difference in prioritization of which system/architecture properties are more important. Anyway, keep writing more ;) |
Beta Was this translation helpful? Give feedback.
-
2023/05/16/from-domain-events-to-infrastructure-thinking-out-loud-about-possible-approaches-i-dont-hate/
On the topics of domain-driven design and event-driven architecture, something that’s been on my mind for quite some time, is the process of handling domain events, as well as potentially translating them into integration events.
https://blog.codingmilitia.com/2023/05/16/from-domain-events-to-infrastructure-thinking-out-loud-about-possible-approaches-i-dont-hate/?utm_source=substack&utm_medium=email
Beta Was this translation helpful? Give feedback.
All reactions