Content enricher pattern By David Boyne

Content enricher pattern By David Boyne

Content enricher pattern

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

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.

Purchase book $15.00
Diagrams and thoughts by @boyney123 to help you learn.