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

查看:158
本文介绍了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等多项操作时,该API非常适合.然后您可以调用将执行某些特定操作的特定资源.

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服务,代理服务可以称为soap服务.

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

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

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