简体   繁体   English

如果组件已经可用,我们应该在Mule中使用Java组件吗? ule子性能和优化

[英]Should we use Java Component in Mule, if component is already available? Mule Performance and Optimization

It is accepted that we should use available Mule Components to achieve particular functionality rather then, using Custom Java Transformers. 我们应该使用可用的Mule组件来实现特定功能,而不是使用Custom Java Transformers,这已被接受。

The case is that i already have Mule component to perform particular functionality, But instead of using that, i introduced Java Transformer to achieve the same functionality. 情况是我已经具有执行特定功能的Mule组件,但是我没有使用它,而是引入了Java Transformer来实现相同的功能。

I need a comparison between performance of two, as i am unable to find some speed issue. 我需要比较两者的性能,因为我找不到速度问题。

but still i want to know: 但我仍然想知道:

Will it deteriorates performance? 会降低性能吗? Will it make application slow in future? 将来会使应用程序变慢吗?

I am unable to get answer for the same in forums. 我无法在论坛中获得相同答案。 If anyone could comment on same. 如果有人可以对此发表评论。

No, using your own implementations won't slow things down (unless you implement them badly) but why would you do that if Mule provides what you need out-of-the-box? 不,使用您自己的实现不会减慢速度(除非您实施得不好),但是如果Mule提供了现成的需求,您为什么会这样做呢? Better use a transformer that is widely used and thus has been tested and debugged for you already. 最好使用广泛使用的变压器,因此已经为您进行了测试和调试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM