Page 1 of 1

Parallel Processing of Rest Object in Rest Call

Posted: Tue May 29, 2018 8:58 am
by atul9806
Hi Gurus
There is a requirement of a REST call which has the Request as below -

Code: Select all

{
    "key1": [   "value1     ],
    "idSet": [                { 
               "id": [
        { "idType": "com.server1"
          "idValue": "451902123"
        }  ],
               "id": [
        { "idType": "com.server2"
          "idValue": "4519021234"
        }  ]
               }              
    ]
  }
Here "idSet" array object can have thousands of element "id", Can we process them parallel in Hierarchal Stage while making REST call.

Posted: Tue May 29, 2018 3:26 pm
by eostic
Depends a bit on what you mean by "process them in parallel". The REST call itself is a blocked call, so once you finish building your payload you will then issue a POST, or whatever and it will send it.....but if you are transforming or creating those IDs somewhere else, there are lots of strategies for what you might do with them beforehand, in parallel or otherwise, inside of, or upstream from, the Hierarchical Stage.

What is the goal? Do you want to process them in independent or "grouped" REST calls (with a subset of the array in each call?)?

Ernie