Parallel and Sequential Operations

Use of parallel or sequential operations is set using the following boolean property in the CDD file:

Agent.agentClassName.enableParallelOps

Parallel operations is only used with cache aside (defaults to false for write behind). It is an agent level property, so you can set it differently on each agent, depending on the needs. For reference documentation, see TIBCO BusinessEvents Developer’s Guide.

Message Acknowledgment

 With both parallel and sequential operations, message acknowledgement and releasing locks (epilog actions) wait for the three post-RTC tasks to complete. Note the following exceptions:
  • Events consumed in a preprocessor. In this case acknowledgements are sent immediately.
  • JMS messages with acknowledgment types AUTO_ACKNOWLEDGE and DUPS_OK_ACKNOWLEDGE.

Parallel Operations

When the enableParallelOps property is set to true, parallel operations are used. Parallel operations is shown in the diagram for this section. It uses multiple threads and queues for more efficient processing during the post-RTC phase.

Note: The parallel operations feature is used only with cache aside. It is enabled by default when both cache aside and concurrent RTC features are enabled.

Sequential Operations

When the enableParallelOps property is set to false, sequential operations are used. This means that all post-RTC phase operations are done on a single thread. Sequential operations ensures that the system waits to send a reply event confirming that some work has been done, until the result of the work can be seen in the cache.

Advantages

  • The following advantages are available when parallel operations is used:
    • Allows batching of RTC database write operations.
    • Provides thread and queue size controls.
  • Offers the ability to use the database as the primary storage, and to use cache secondarily, to pass the objects between the Rete network and the database. This strategy is useful in some usage scenarios.

Disadvantages

  • There are really no disadvantages in comparison with write behind.