Skip to main content
Solved

perform_batch - are the items within this called synchronously?

  • November 24, 2022
  • 2 replies
  • 128 views

Forum|alt.badge.img+9

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

Best answer by Shneor Cheshin

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>

2 replies

Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • Answer
  • November 25, 2022

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>


Forum|alt.badge.img+9
  • Author
  • Sidekick (Partner)
  • November 25, 2022

Thanks for that detailed answer @Shneor Cheshin