Showing results for 
Search instead for 
Did you mean: 

How content enricher is different from request-reply.

Hello CPI Experts,

I just wanted to understand how request-reply is different from content enricher. Both are synchronous and wait for a response. Request-reply doesn't have any algorithm while enricher is having enrich and combine algorithm.
Can you please briefly explain each case with small example?

Accepted Solutions (1)

Accepted Solutions (1)

Active Contributor

Hi Mani

As you rightly point out, both steps make a synchronous call to an external system. Where they differ, is in how the response is handled.

In the case of Request-Reply, the response from the external system replaces the current payload. This means that if you need both the old payload and the response from the external system, you need to store the old payload in e.g. an exchange property before making the external call.

In the case of Content Enricher, the response from the external system is merged into the current payload, as per the step configuration. An example of this could be a lookup of e.g. customer details. The returned information is added to a customer element in the current payload, thereby enriching it.



0 Kudos

Thanks a lot for explaining in such a simple way. 🙂

Answers (1)

Answers (1)

Active Contributor

Hello Mani,

Please go through the below set of blogs which will clarify basics on above 2 steps.


Sriprasad Shivaram Bhat