Content Enricher Pattern
Learn Content Enricher Pattern (Message Routing & Transformation Patterns, Integration & Messaging Patterns) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
What is the Content Enricher Pattern? A Content Enricher adds missing data to a message before it's passed downstream - typically by looking the extra data up from another service, database, or cache - because the original message doesn't carry everything the eventual consumer needs. Typical Example An "OrderPlaced" event might only contain a customerId . If the downstream consumer needs the customer's full name and email to send a confirmation, a Content Enricher fetches those details and adds them to the message before forwarding it.