Download PDF (1.3 MB) - IBM Redbooks
Download PDF (1.3 MB) - IBM Redbooks
Download PDF (1.3 MB) - IBM Redbooks
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
3.2.10 Invocation style considerations<br />
This section explains invocation style considerations.<br />
Using asynchronicity judiciously<br />
Components and modules might be wired to each other either synchronously or<br />
asynchronously. The choice of interaction style can have a profound impact on performance.<br />
Exercise care when making this choice.<br />
Setting the Preferred Interaction Style to Synchronous when possible<br />
Many Business Process Manager server component types (such as interface maps or<br />
business rules) start their target components based on the Preferred Interaction Style setting<br />
of the target interface. Because synchronous cross-component invocations perform better,<br />
set the Preferred Interaction Style to Synchronous when possible. Change this setting to<br />
Asynchronous only in specific cases. Such cases might include starting a long-running<br />
business process, or more generally, where the target component requires asynchronous<br />
invocation.<br />
Starting with WebSphere Integration Developer V6.2 (now Integration Designer), when a new<br />
component is added to an assembly diagram, its Preferred Interaction Style is set to<br />
Synchronous, Asynchronous, or Any, based on the component. In previous releases of the<br />
Integration Designer (then called WebSphere Integration Developer), the default initial setting<br />
of Preferred Interaction Style was set to Any unless explicitly changed by the user. If the<br />
Preferred Interaction Style of a component is set to Any, how the component is started is<br />
determined by the caller’s context. If the caller is a long-running business process, a Preferred<br />
Interaction Style setting of Any is treated as asynchronous. If the caller is a non-interruptible<br />
business flow, a Preferred Interaction Style setting of Any is treated as synchronous.<br />
See “Taking advantage of transactional attributes for activities in long-running processes” on<br />
page 39 for more information about the invocation logic of processes<br />
The following list details additional considerations for invocation styles:<br />
► When the Preferred Interaction Style of an interface is set to Asynchronous, it is important<br />
to realize the downstream implications. Any components started downstream inherit the<br />
asynchronous interaction style unless they explicitly set the Preferred Interaction Style to<br />
Synchronous.<br />
► At the input boundary to a module, exports that represent asynchronous transports such<br />
as <strong>IBM</strong> WebSphere MQ, JMS, or Java EE Connector Architecture (with asynchronous<br />
delivery set), set the interaction style to Asynchronous. This setting can cause<br />
downstream invocations to be asynchronous if the Preferred Interaction Style is Any.<br />
► For an SCA import, you can use Preferred Interaction Style to specify whether the<br />
cross-module call should be Synchronous or Asynchronous.<br />
► For other imports that represent asynchronous transports such as WebSphere MQ or<br />
JMS, it is not necessary to set the Preferred Interaction Style to Asynchronous. Doing so<br />
introduces an unnecessary asynchronous hop between the calling module and the<br />
invocation of the transport.<br />
40 <strong>IBM</strong> Business Process Manager V8.0 Performance Tuning and Best Practices