Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wso2:esb: What is the basic difference between call mediator and send mediator

Tags:

wso2

wso2esb

Anybody would please through some light on difference between call and send mediator and what use cases these two mediators are used.

like image 752
storia321 Avatar asked Dec 18 '15 17:12

storia321


People also ask

What is mediator in WSO2?

A mediator is a full-powered processing unit in the ESB profile of WSO2 EI. At run-time, a mediator has access to all the parts of the ESB profile along with the current message and can do virtually anything with the message. At the run-time, a message is injected in to the mediator with the ESB profile information.

What is content awareness in a mediator?

Content-aware mediators: These mediators always access the message content when mediating messages (e.g., Enrich mediator). Content-unaware mediators: These mediators never access the message content when mediating messages (e.g., Send mediator).


1 Answers

Send mediator - used to send messages out of Synapse to some endpoint. Then the response is returned to the OutSequence where you can send it back to the client

Use cases - When you only need to send a message to one back end and return the response back to the client.

Call mediator - Also used to send messages out of the Synapse to some endpoint, but the response does not come to the OutSequence. When we send a request using the call mediator, the response will arrive to the mediator that is placed right after the call mediator.So this will allow us to specify all the service invocations one after the other in a chain within a single sequence

Use cases - Service chaining. i.e.- Vehicle license renewal service

like image 152
krishan Avatar answered Sep 28 '22 03:09

krishan