Solved

perform_batch - are the items within this called synchronously?

  • 24 November 2022
  • 2 replies
  • 15 views

Userlevel 4
Badge +8
  • Sidekick (Partner)
  • 39 replies

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

icon

Best answer by Shneor Cheshin 25 November 2022, 05:51

View original

2 replies

Userlevel 6
Badge +18

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>

Userlevel 4
Badge +8

Thanks for that detailed answer @Shneor Cheshin 

 

Reply