Does Scatter-Gather support transactions?

Prepare for the MuleSoft Developer 2 Certification Exam. Access practice quizzes featuring flashcards and multiple choice questions with explanations. Get confident and ready for your certification success!

Multiple Choice

Does Scatter-Gather support transactions?

Explanation:
The key idea is how transactions and parallel routing interact in Scatter-Gather. In Mule, a transaction binds work to a single thread. If Scatter-Gather runs its paths in parallel, each path typically executes on its own thread, which prevents all the work from sharing one global transaction boundary. To have all the operations inside the same transaction, the paths must be executed sequentially, not in parallel. That’s why Scatter-Gather can participate in a transaction, but only when the paths aren’t run simultaneously. If you need a single atomic unit across all paths, configure Scatter-Gather to run sequentially; parallel mode would mean separate transactions per path.

The key idea is how transactions and parallel routing interact in Scatter-Gather. In Mule, a transaction binds work to a single thread. If Scatter-Gather runs its paths in parallel, each path typically executes on its own thread, which prevents all the work from sharing one global transaction boundary. To have all the operations inside the same transaction, the paths must be executed sequentially, not in parallel. That’s why Scatter-Gather can participate in a transaction, but only when the paths aren’t run simultaneously. If you need a single atomic unit across all paths, configure Scatter-Gather to run sequentially; parallel mode would mean separate transactions per path.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy