Setting Parallel Locker Thread Sleep
By reducing the amount of time that the engine sleeps between checking for parallel composite instances that need executing, performance can be improved.
Getting ready
For more details, refer to the Getting ready section of the Setting Mediator Parallel Metrics Level recipe.
How to do it...
To set the Parallel Locker Thread Sleep
time, perform the following steps:
Follow the steps from 1 through 3 from the Set Mediator Parallel Metrics Level recipe.
Set the
Parallel Locker Thread Sleep
property to1
.
How it works...
While parallel routing rules do allow for truly asynchronous processing in the Mediator, the way that they are processed is not intuitive. A daemon thread is used to check the Mediator store database for requests to be processed, and checks each parallel rule in turn. If there are requests to be processed for a rule, then exactly one request will be processed for that rule using a Mediator worker thread. After it has checked all the parallel rules...