Re:Ask HN: When should event-driven architecture be avoided?
by sorokod on Friday February 04, 2022 @09:15AM
(#30206969)
I often see this sort of argument and disagree. The complexity is still there but instead of being someone's problem, it's owned by no one.
Re:Ask HN: When should event-driven architecture be avoided?
by busterarm on Friday February 04, 2022 @10:06AM
(#30207624)
That's an organizational problem, rather than a software architecture problem.
Refer to the first 3 bullet points of the Bezos Mandate.
Re:Ask HN: When should event-driven architecture be avoided?
by sorokod on Friday February 04, 2022 @10:08AM
(#30207668)
Depends on your definition of "organisational" but note that it is the architecture that converts one to the other.
In fact it is this that makes event driven so attractive, rather the solving a difficult problem right now, someone will need to sort out the mess later.
As an example, imagine a small system where a user changes their email address. In the beginning you might only have one action "update database". As the system grows, maybe new teams start to add new features triggered from that event, say "send confirmation email", "calculate fraud score", "send new email to marketing vendor". You could just go and call all those APIs, but at some point you want to emit a "change email event" and just let the other systems do with it what they will.