Skip to main content

Hi Experts,
 

We can run a perform_batch to have multiple actions executed as a batch. The question I have is, are there actions executed synchronously or asynchronously? 

Cheers,
Miraj

hey @Miraj 

 

Perform Batch Concurrency Node Types

 

  • sequential_independent—each message in the batch is executed one at a time, in order; if one message operation fails, the next is executed. 
  • sequential_dependent—each message in the batch is executed one at a time, in order; if one message operation fails, execution is stopped, and all transactions are rolled back.
  • concurrent_independent—each message in the batch is executed at the same time; if any message operation fails, the rest continue to execute.
  • concurrent_dependent—each message in the batch is executed at the same time; if any message operation fails, execution is stopped, and all transactions are rolled back.

The default is sequential_independent.  A maximum of 64 messages can be executed using a concurrent_independent batch XML message.

Perform Batch Message Root Node Syntax

 

<perform_batch>

        <{sequential | concurrent}_{dependent | independent}/>

        <{XML_Message}/>

        <{XML_Message}/>

        <{XML_Message}/>

        …

</perform_batch>

 

Alternate form with the concurrency node encapsulating the XML messages:

<perform_batch>

        <{sequential | concurrent}_{dependent | independent}>

        <{XML_Message}/>

        <{XML_Message}/>

        <{XML_Message}/>

        …

        </{sequential | concurrent}_{dependent | independent}>

</perform_batch>


Thanks for that detailed answer @Shneor Cheshin 

 


Reply