Ten Years of Experience with Event-Driven Architecture: Don’t Rush to Write Code
David Boyne has worked with event-driven architecture for nearly ten years, and he attributes success to three areas: identifying events, understanding messaging and integration patterns, and maintaining long-term operability. Event storming, pattern libraries, and documentation standards matter more than starting to code right away.
David Boyne posted a long article on X, distilling nearly ten years of experience with event-driven architecture into three areas. Original article: https://x.com/i/article/2128759617240911872
He starts with a judgment: when building event-driven architecture, the truly difficult part is whether it can still be maintained years later. Choosing a message queue is only one step.
Identify events first, then start building
There are usually two paths to starting with event-driven architecture. One is to implement directly. The other is to stop first, understand system behavior, and identify events.
David recommends the latter. Spending time identifying events, commands, systems, and aggregates can help with subsequent modeling. He recommends using Event storming workshops. Bring domain experts together, discuss how the system works, and name aggregates and events. Event names should be clear, not vague.
Event storming is not something you run only once at the beginning of a project. You should come back to it later and keep using it to maintain a shared understanding of the system across the team.
Event-driven architecture is not a single pattern
It is more like a collection of patterns. Depending on requirements, both messaging patterns and integration patterns will appear in the architecture.
Messaging patterns include point-to-point, publish-subscribe, and event streaming. Messages and events travel through the system, and over time, multiple messaging patterns may coexist in the architecture.
Integration patterns are used to handle specific situations. Examples include claim check, splitter, and message translator. These are covered in the Enterprise Integration Patterns book. Understanding messaging and integration patterns is part of making event-driven architecture work in practice.
Think about maintenance issues in advance
Ask what this architecture will look like in 6 months, 12 months, and 24 months. How will people discover events? How will events be changed? Who is producing what?
Documentation can control maintenance costs. At a minimum, document clearly who consumes what and who produces what. Event standards can also help the architecture scale. What information should all events contain? Should an internal SDK be built so teams can build events according to standards?
Think in advance about problems that may arise in the future, then spend time introducing practices to head off those problems.
Additional resources
In the original article, David included diagrams and resources on these topics: Event storming, domain-driven design and event-driven architecture, point-to-point messaging, publish-subscribe, and event discovery. He also maintains an open-source project, EventCatalog, for documenting software architecture: https://www.eventcatalog.dev/
Original post: https://x.com/boyney123/status/2128760301478682629
发布时间: 2026-12-04 20:27