Data Mapper Mediator 和 Payload Factory Mediator 的区别 [英] Difference between Data Mapper Mediator and Payload Factory Mediator

查看:11
本文介绍了Data Mapper Mediator 和 Payload Factory Mediator 的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除了语法之外,数据映射器和有效负载工厂之间的核心区别是什么?它们都可以将数据从一种格式转换/转换为另一种格式.

Besides the syntax what is the core difference between a data mapper and payload factory? They both can convert/transform data from one format to another.

推荐答案

我只用过几次数据映射器(你坚持你所知道的).在我看来,这两个中介提供了几乎相同的功能(就像 xslt 中介一样),但底层技术,主要是开发方法是完全不同的.

I have used the data mapper only a few times (you stick with what you know). In my opinion both mediators provide mostly the same functionality (as does the xslt mediator) but the underlying technology and mainly the development method is radically different.

  • datamapper 提供了一种转换消息的图形方式.它用现有的输出和输入消息来播种转换,因此当您拥有服务 A 的输出和服务 B 的输入并且只需将数据从 A 映射到 B 时,它就很强大.
  • payloadFactory 能够快速构建消息.我主要使用它来创建请求,其中只需将几个字段从原始请求映射到新请求.
  • xslt 是一种通用且强大的消息转换方式,但它需要一些经验.许多第 3 方工具可用于协助转换.
  • datamapper provides a graphical way of transforming messages. It uses existing output and input messages to seed the transformation so it is strong when you have the output of service A and the input of service B and just need to map the data from A to B.
  • payloadFactory is able to quickly build messages. I use it mostly to create requests where only a few fields need to be mapped from the original request to the new request.
  • xslt is a versatile and powerful way of transforming messages but it requires some experience. A lot of 3th party tooling is available to assist with the transformation.

这篇关于Data Mapper Mediator 和 Payload Factory Mediator 的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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