on ‎2023 Feb 27 2:00 PM
I work on the CPI with below integration flow.
In this integration flow, there is a time-cost step (e.x. call an external system). To make thing simple, I just use a wait for 1 minutes step '(3)' at here.
The request is received from client application with https request and saved into a data store at '(1)'. Then pick it out at '(2)'.
My question is how to make the below flow become multi-threading. Now, if the logic need about 1 min at '(3)'. And there is more than one request in the data store. Then the following request has to wait for these previous finished. Then the next request will be picked out and executed.
Whether there is some way to make it multi-thread to speed-up the below flow.

Request clarification before answering.
Hi joseph_cen- I agree with Vijay's insights. You can try splitter and parallel processing options from CPI to create multi-threading.
In addition, you can create a scheduler in your iFlow -> get one record at a time from datastore -> process the record with iFlow -> post-processing, delete the entry from DS -> next step, CPI pointer will move to another record in DS
Regards,
Karthik Arjun
SAP CPI | Fiori Senior Specialist
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are fetching multiple records from the data store, use a splitter and select parallel processing. Each thread will wait for 1 minute before processing another API call. Your number of threads must be less than or equal to the number supported by the API call.
Otherwise, sequential processing in splitter with 1 min wait for every record. But this will not give you parallel processing.
Refer to - https://blogs.sap.com/2021/05/23/sap-cpi-use-select-operation-to-fetch-all-records-from-datastore/
Hope that helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.