wso2 Esb中代理服务和API服务的区别 [英] Difference between Proxy Service and API Service in wso2 Esb

查看:23
本文介绍了wso2 Esb中代理服务和API服务的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

wso2esb 中的代理服务和 API 服务有什么区别?

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

为了公开我的服务,我可以提供代理 URL 和 API URL,那么在哪种情况下两者不同?哪些场景可以使用代理,哪些场景可以使用API​​?

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?

请帮助我理解..,

推荐答案

一个 API 有资源,所以当你必须执行多个操作(如 CRUD 等)时它是合适的.然后你可以调用将执行某些特定操作的特定资源.

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).

所以,你可以做的是,为多个操作创建一个 API,然后为每个操作创建代理服务.

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

此外,API 可以称为 REST 服务,Proxy 服务称为肥皂服务.

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

这篇关于wso2 Esb中代理服务和API服务的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆