Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Proxy Service and API Service in wso2 Esb

Tags:

wso2

What is the difference between a Proxy service and API service in wso2esb?

To expose my service I can give proxy URL and API URL then in which scenario both differs? and in which scenario I can use proxy and in which I can use API?

Please help me in understanding..,

like image 768
Thiru Avatar asked Jun 22 '16 05:06

Thiru


People also ask

What is proxy service in WSO2 ESB?

Proxy services are virtual services that receive messages and optionally process them before forwarding them to a service at a given endpoint. This approach allows you to perform necessary transformations and introduce additional functionality without changing your existing service.

What is ESB proxy?

A Proxy service is a way of triggering a mediation flow defined in the ESB of WSO2 Enterprise Integrator (WSO2 EI). Alternatively, you can use REST APIs, Inbound Endpoints, Scheduled Tasks or Topics and Events. Overview of proxy services. Elements of a proxy service. Target in-sequence/endpoint.

How do I create API in WSO2 ESB?

Open the WSO2 EI management console. Click the Main tab, and then click APIs to open the Deployed APIs page. Click Add API to open the Add API page. Enter values for the following parameters in the header of the page as required: API Name, Context, Host Name, Port, Version Type and Version.

What is a WSO2 service?

WSO2 is a middleware vendor that sells open source application program interface (API) management software. The WSO2 API management software allows users to efficiently design, deploy and maintain APIs.


1 Answers

An API has resources so it is suitable when you have to perform multiple operations like CRUD etc. then you can call particular resource which will be performing some particular operation.

A proxy service is suitable when you have to perform an isolated operation (single operation).

So, what you can do is, make an API for multiple operations and then create proxy services for each operation.

Moreover, API can be called as REST service and Proxy service is called as a soap service.

like image 134
Ghil Maan Avatar answered Nov 14 '22 23:11

Ghil Maan