Mule ESB : Which has better performance -- scripts (java script,groovy,ognl etc ) or java code through Java component or transformer -


i had question in mind long time , jotting down now.

which best practice or has edge on others while transforming or processing data in mule esb. curious differentiate between following components.

  1. java script
  2. groovy script
  3. other allowed scripts

vs

java component or java transformer

usually esb should provide various options transformations , mule provides lot of ways , methodologies transformation.

i curios know better of common situations.

for example check scenarios below.

calling java component chunk out list object , make list payload vs using ognl in set payload component.

ognl being deprecated in mule.

regarding javascript vs groovy vs mel (mvel) depends.

mel scripts faster start (find here performance benchmarks), followed javascript (mule still not use java 8's nashorn) , followed groovy.

however, big tasks initialization doens't matter groovy might still perform faster.

anyhow, 100% of cases, java components, on equivalent tasks perform faster other binding. due mule written in java , doing straight api calls without using bindings or adaptations.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -