Translate

Friday 10 November 2023

Flow reference is synchronous. True or False in Mule Soft

 

Flow reference is synchronous. True or False inMule Soft?

False:

A flow reference is asynchronous in MuleSoft. This means that when you call a flow reference, the flow that is calling the reference does not wait for the referenced flow to finish processing before continuing.

https://youtu.be/I5CqUw4tGek

Synchronous flows, on the other hand, wait for the flow that they call to finish processing before continuing.

The following table summarizes the key differences between synchronous flows and flow references in MuleSoft:

Property

Synchronous flow

Flow reference

Execution

Synchronous

Asynchronous

Waits for completion

Yes

No

Can be used to call other flows

Yes

Yes

Flow references are often used to implement asynchronous messaging scenarios. For example, a flow might use a flow reference to call a flow that sends an email notification. The flow that calls the reference would not wait for the email notification to be sent before continuing.

Synchronous flows are often used to implement synchronous messaging scenarios. For example, a flow might use a synchronous flow to call a flow that retrieves data from a database. The flow that calls the synchronous flow would wait for the data to be retrieved before continuing.

 

No comments:

Post a Comment

Note: only a member of this blog may post a comment.