30
Views
6
Comments
Reactive web run job parallel
Application Type
Reactive

Hi all,

I have a reactive web app run both in desktop and mobile and have a requirement as below:

An timer run every day to get data from API and update to OS table, there are 2 years data will be updated (current year and next year), after updated data it will add records to notifications table and sent email to user if there are any changes of data.

My issue is when run job update data it will call API 2 times sequence to update data for 2 years, this will take more time to complete. Is there any way to run 2 years data updated by API Parallel to take less time?

Thank you.

2024-10-25 08-47-19
Eduardo Pires

Hi @Bella Nguyen!

If I understood correctly, you can use BPT to do that job. https://success.outsystems.com/documentation/11/building_apps/using_processes_bpt/

1 BPT Process to do the Year 1, and other one to Year 2, and launch the 2 process in the flow:

For each process you will have an automatic activity to do the logic on call API and so on...

2016-04-22 00-29-45
Nuno Reis
 
MVP

Considering that the main concern is around the time taken, I don't think BPTs will be better than Timers.

2024-10-25 08-47-19
Eduardo Pires


If I understand correctly, the problem is in API response time.

For parallel the transactions, it will be recommending use of the BPT process instead of timers. Check the answer of Leonardo Fernandes: https://www.outsystems.com/forums/discussion/48606/schedule-timer-vs-processes/#Post179820

2016-04-22 00-29-45
Nuno Reis
 
MVP

Hello.

You can run multiple timers at the same time (just not the same Timer, but you can clone it and run with a different name).

As long as you can call the API simultaneously, I don't see any limitation.


2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Why do you need to run a daily script for 2 years of data? Is the data in these 2 years time Window still subject to change? If not try to onnly sync new added data, so all databsince previous sync run.

2022-12-30 07-28-09
Navneet Garg

you can check following discussion on parallel timer. It might help you.

https://www.outsystems.com/forums/discussion/79852/parallel-running-timers/


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.