Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

loop back mediator and respond mediator

Tags:

wso2

wso2-esb

I am working on WSO2 ESB 4.9.0. We have an API with in and out sequences. All the business logic is there in, in sequence and out sequence doesn't have any logic implemented. Some times we need to exit the flow from in sequence because all our back end service calls are made with call mediator and not with send mediator. In this service chain pattern, if we want to exit the flow, do we need to use respond OR loopback mediator.

Can somebody help me what are the basic use cases where loopback and respond can be used

like image 406
storia321 Avatar asked Aug 12 '16 16:08

storia321


1 Answers

respond mediator will send back the response to the client. loopback mediator will move the message flow to the outsequence. In this case you need to use respond mediator since you need to exit the flow and respond to the client. However, if you have any mediation that you need to execute in outsequence, you can always use loopback mediator and use respond mediator in the outsequence to do the same.

like image 95
maheeka Avatar answered Sep 18 '22 06:09

maheeka