I’m always saying that with Event-Driven Architectures, the modelling effort pays back. That goes both ways: the less effort we put in modelling, the more it’ll hurt later.
There’s a wide range of issues you may be facing, from overfocusing on the state instead of tracking behaviour, to asking others more often than allowing them to tell you what happened, and ending with race conditions and other unpleasant scenarios.
I packed as many of such cases into our talk, and the recording from this year’s @dddeu just arrived: https://www.youtube.com/watch?v=Lf1MZlpbkGA
During the session, I explained the specifics of event modelling (yes, no capital letter, and double l), starting with bad practices and knowing why and how to avoid them.
I told the story about the project that aimed to modernise legacy software into the event-driven world. In theory, artificial, but in practice, none of the examples were made up. Either I made those mistakes on my own, or I saw them in my projects or helped to fix them for my clients.
I tried to make it both entertaining and educational, bitter and sweet. It is not easy when you’re not a native speaker. There’s a thin line between being funny and being silly.
There’s also a thin line between bad and good practices. And its name is: context.
Also, as much some of those cases may seem wild, I can assure you that all of those mistakes I either:
- did by myself,
- saw in my projects,
- saw in my client’s project.
Check it out, why learn always from your mistakes?
Learn from mine.