Parallel Processing in Logic App

Hi Friends, in this article I would like to explain parallel processing in Logic App. Parallel Processing in Logic app is a mechanism by which two or more different actions can take place concurrently but independently.

Consider an example that calls 2 independent list of Services in parallel and One with 25 seconds of delay. First we shall see how our Parallel Shape would look like inside Logic App Designer,

2

In this Logic App,

  1. There is a Request shape which receives the request.
  2. Initialize shape to initialize a Integer variable “PostNumber” to 0
  3. Branch (kind of) shape has 2 wings in it.
    1. The first wing has 2 REST calls with a Delay of 25 seconds
    2. Second wing has 2 REST calls.
  4. Once the execution over in both the sides, we combine both the outputs and form the response.
  5. The control flow will continue and return the response only if both wings are completed in the Branch shape.

REST Service looks like below and in the URL we pass PostNumber variable.

4

it returns Latin language so we call Google translation API Service to Convert it into English.

6.PNG

Logic App waits till first wing’s execution to get over

1.PNG

At the moment, we cant bring a parallel branch shape in the Logic App Designer but using runafter() element in the code window, we could achieve it. In this case, “Increment_PostNumberBy1” and “Increment_PostNumberBy2” has same runafter() value that is Initialize_Variable.

5.PNG

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

WordPress.com.

Up ↑

%d bloggers like this: