Loop back mediator and response mediator

I am working on WSO2 ESB 4.9.0. We have an API with input and output sequences. All business logic in sequence, sequence, and output is not implemented. Sometimes we need to exit the thread sequentially because all of our service callbacks are made using the call broker, not the send broker. In this service chain template, if we want to exit the flow, we need to use a response or loopback broker.

Can someone help me out what are the main use cases in which loopback and response can be used

+4
source share
1 answer

respond mediatorwill send a response to the client. loopback mediatorwill move the message flow to outsequence. In this case, you need to use respond mediator, since you need to exit the stream and respond to the client. However, if you have any kind of mediation that you must perform in outsequence, you can always use loopback mediatorand use respond mediatorin outsequenceto do the same.

+4
source

Source: https://habr.com/ru/post/1651096/


All Articles