08.06.2014 Views

Download PDF (1.3 MB) - IBM Redbooks

Download PDF (1.3 MB) - IBM Redbooks

Download PDF (1.3 MB) - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Turn off auto-tracking in business process diagrams if not required<br />

Auto-tracking is enabled by default for BPDs. This capability is important for many BPDs<br />

because it enables the gathering, tracking, and reporting of key business metrics. However,<br />

an additional cost exists as a result of auto-tracking because the events are processed by the<br />

Performance Data Warehouse and persisted in the database. Disable auto tracking for BPDs<br />

that do not require tracking and reporting business metrics.<br />

Also consider creating tracking groups to only track key business events, and then disable<br />

auto-tracking. This will ensure that the events persisted are only those required for business<br />

metrics.<br />

Avoid business process diagrams (BPDs) that run perpetually<br />

Some BPDs run forever. Although certain business processes must run perpetually, design<br />

this type of BPD only if the capability is strictly required. BPDs that run perpetually continually<br />

poll for new events, which uses server processor resources. Consider using other<br />

communication mechanisms (such as Java Message Service queues) instead of polling. If<br />

polling is necessary, use an undercover agent (UCA) instead of a BPD to do the polling. Also,<br />

disable auto-tracking for these BPDs to avoid excessive traffic to the Performance Data<br />

Warehouse.<br />

Develop efficient coaches<br />

To develop well-performing coaches, consider the following guidelines:<br />

►<br />

►<br />

►<br />

►<br />

Use custom visibility sparingly.<br />

Avoid large, complex coaches.<br />

Avoid large, repeating tables. Page the results instead.<br />

Always wire coaches to end nodes.<br />

Minimize use of large JavaScript scripts<br />

Avoid large JavaScript blocks because JavaScript is interpreted and therefore is slower to<br />

process than other compiled mechanisms such as Java code. Large JavaScript blocks can<br />

also produce very large Document Object Model (DOM) trees, which are expensive for<br />

browsers to process and render. Finally, large JavaScript blocks are often indicative of too<br />

much logic being placed in the Business Process Manager layer.<br />

As a general guideline, limit a JavaScript block to 50 lines. If your implementation exceeds<br />

this value, re-evaluate the design and re-factor the implementation to use smaller JavaScript<br />

blocks.<br />

Avoid direct SQL access to internal Business Process Manager tables<br />

SQL tools provide the capability to access any database table, including internal Business<br />

Process Manager tables such as LSW_TASK, LSW_PROCESS, and so on. Avoid accessing<br />

internal Business Process Manager tables directly, because these are internal tables and the<br />

definition and content of the tables may change in future Business Process Manager<br />

releases. Instead, use published Business Process Manager APIs, such as JavaScript and<br />

REST APIs.<br />

It is also important to avoid storing internal Business Process Manager information in<br />

application-specific persistent storage, because it is difficult to maintain consistency between<br />

the internal Business Process Manager persistent storage and the application's own<br />

persistent storage.<br />

10 <strong>IBM</strong> Business Process Manager V8.0 Performance Tuning and Best Practices

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!