Hello,
I have a query about JS cloud code execution time, asking for direction as a non-developer.
I have a developer help me move some working code from Heroku to backendless (where I have the DB) and apparently it triggering the execution limit.
The code is used to fetch data from an external API which takes some time to process the request and return a response, around a second per query.
Its possible just one user will request up to 100 queries or more at a time in a new project, so I assume the code will need to run continuously in this example for up to 100 seconds to complete the full activity?
So in this example it seems like the 20 second upgraded limit would still be an issue.
-
Theoretically is it possible to change the code in such a way that each external API request “executes separately” so the execution time is only 1 second for each API request. Not sure if that even makes sense, I dont know JS.
-
Is it better to use codeless to fetch the external data as this would not be executing cloud code and not have a limit?
-
Rather just leave this function on Heroku or other host for now and revisit later after basic idea is validated.
Thanks!