Exchange Pattern | Transactional? | Flow Processing Strategy |
---|---|---|
Request-Response | Yes | Synchronous |
Request-Response | No | Synchronous |
One-way | Yes | Synchronous |
One-way | No | Queued-Asynchronous |
Flow Processing Strategy implictly applied by Mule | Can we specify a different processing strategy? | Can we fine-tune the processing strategy? | Can you create a processing block that executes using a different processing strategy from the main flow? | Can you apply a custom processing strategy using Spring? |
---|---|---|---|---|
Synchronous | No | No | Yes | Yes |
Queued-Asynchronous | Yes | Yes | Yes | Yes |
Additional Asynchronous Processing Strategy Element/Global Element Names | Description |
---|---|
asynchronous-processing-strategy | Not applicable to most use cases.Same as queued-asynchronous processing strategy except that it doesn’t use a queue. |
queued-thread-per-processor-processing-strategy | Not applicable to most use cases.Writes messages to a queue, then every processor in the scope runs sequentially in a different thread. |
thread-per-processor-processing-strategy | Not applicable to most use cases.Every processor in the scope runs sequentially in a different thread. |
Global Element | Description |
---|---|
asynchronous-processing-strategy | Not applicable to most use cases.Same as queued-asynchronous processing strategy except that it doesn’t use a queue. |
queued-asynchronous-processing-strategy |
Uses a queue to decouple the flow’s receiver from the rest of the steps in the flow.Select this if you want to fine-tune this processing strategy by:
|
queued-thread-per-processor-processing-strategy | Not applicable to most use cases.Writes messages to a queue, then every processor in the scope runs sequentially in a different thread. |
thread-per-processor-processing-strategy | Not applicable to most use cases.Every processor in the scope runs sequentially in a different thread. |
Comments