top | item 33393949

(no title)

aerffrea | 3 years ago

Thin events have the benefit of easy retry/resend logic. Depending on your message queue solution you might need to sometimes resend events. If the event is 'user account changed', receiving it a few times too many causes only performance issues, but not correctness problems. Sometimes this is the better tradeoff.

It is easier to send an event 'user account changed' than to analyze in detail what exactly changed, which also allows you to decouple the event logic from everything else.

Of course not every system benefits from such solutions, but sometimes simplicity wins.

discuss

order

No comments yet.