Content enricher pattern By David Boyne
Content enricher pattern By David Boyne
Sometimes downstream consumers need more information (sometimes seen when events are notification events). Downstream consumers call external APIS or back to the producer to get information they require. Be careful with this pattern as it could lead to coupling.
With content enricher pattern you can add an enricher in the middle to pick up messages/events and enrich them before sending downstream to consumers.
Why enrich messages and things to consider
- Keeping the enrichment outside of the consumers domain, keeping consumer “pure”.
- Stop consumers fetching information they require from producer or other APIS.
- Enrichment pattern can lead to more code to maintain and manage
- If consumers need more information, are your event payloads or business boundaries, correct?
Extra resources
- Content Enricher Enterprise Integration Pattern - Great book with tons of patterns and information. Content online for free, recommend reading this.
- Enrich EventBridge events with Lambda - Blog post I wrote about enrichment pattern and using Lambda to enrich your events
- Enrichment pattern with EventBridge Pipe - Pattern that I wrote for Serverless Land that uses EventBridge Pipes to enrich data before sending to downstream consumers.
Explore other visuals
Want to work together?
If you're interested in collaborating, I offer consulting, training, and workshops. I can support you throughout your event-driven architecture journey, from design to implementation. Feel free to reach out to discuss how we can work together, or explore my services on EventCatalog.
EDA Visuals: The book
Join over 13,000 others learning EDA and download all the EDA visuals directly to your computer.
This book contains all the visuals in one book, you can download, read offline and explore.
Purchasing the book supports my work, but for whatever reason if the book is beyond your budget, you can download it for free here.