WSO2 ESB中介序列与代理服务 [英] WSO2 ESB Mediation Sequence vs Proxy Service
问题描述
WSO2 ESB具有用于实现EAI模式的中介序列和代理服务。我目前是新的,无法区分何时使用中介序列或代理服务。两者似乎在大多数使用情况下工作良好。何时应该使用每个?
WSO2 ESB has Mediation Sequences and Proxy Services for implementing EAI patterns. I am currently new and couldn't distinguish when to use a Mediation Sequence or Proxy Service. Both seem to work well in most of the use cases. When should I use each?
推荐答案
序列(中介序列)消息进入序列,通过每个调解器,按照它们在序列中的顺序。因此,调解序列是WSO2 ESB的通用构建材料。
Sequence (Mediation Sequence) is a sequence of Mediators. A message comes into the sequence, passes through the each mediator, in the order they are located in the sequence. So a Mediation Sequence is the generic building material of WSO2 ESB.
中介序列可以理论上用于处理任何类型的消息(二进制,JSON,XML)
A Mediation Sequence can be theoretically used to process any type of message (binary, JSON, XML) passes through it given that mediators can successfully process these messages.
因此,中介序列可用于
- 代理来自/来自Web服务的消息
- 代理来自/来自REST服务的消息
- .....
代理服务是WSO2 ESB中的特殊模块,旨在满足1代理到/自Web服务的消息)
因此,代理服务是一个具有Web服务端点支持的专用中介序列。
A Proxy Service is the special module in WSO2 ESB that is designed to fulfill the requirements of the 1. (Proxy the messages to/from a web service) Therefore a Proxy service is a specialized Mediation Sequence with the support of Web Service Endpoints.
WSO2 ESB以不同的方式为不同类型的需求创建代理服务。
WSO2 ESB facilitates to create Proxy Services in different ways for the different types of requirements.
例如:
- 基于WSDL的代理 - 用于使用给定的WSDL创建代理服务
- 通过代理 - 用于使用端点URL简单地创建代理服务
这篇关于WSO2 ESB中介序列与代理服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!