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..,
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With