Gathering metrics on performance

Setting up the adapter with Perf4J

What’s the most important thing when performance tuning the adapter; it’s information, having a gut feeling about where the adapter is slow is all well and good, but you’ll need to prove it. After all premature optimization is the root of all evil.

In addition to having Perf4J (http://perf4j.codehaus.org) annotations on Workflows, and Producers (which can be enabled using aspectj AOP); 2.7.1 introduced the a new service Perf4jTimingService that can wrap any arbitrary service and gather performance metrics about that service’s throughput.

Embbeded scripts in a workflow

Using JSR223 languages in the adapter

Let’s take a look at some of the features that are available in the Adapter; today we’re going focus on scripting language support.

For a while now (since 2.7.0) you’ve been able to embed a script (using any JSR223 scripting language) as part of a service. You can either use EmbeddedScriptingService (where the script is inline in the XML) or ScriptingService (where you refer to the filename containing the script).

Pagination


© all-the-years. All rights reserved.

Powered by Hydejack v9.2.1