Server Connect - Don’t wait for API (API Action) to respond just keep going…
I have a insert record with SC.
Once things are done it requests the API… writing data to Twilo
But sometimes the API takes 1 - 3 seconds to respond before SC continues.
What can I do… to keep the SC going even if the API is still doing its thing…
Basically make SC assumes that the API did its thing…
Im sure its been asked a million times… but i cannot find the right wording … or search terms
Try/catch is used to catch errors and run specific steps when there are errors.
I don’t know what exactly are you try to do, so i can’t recommend a way - i don’t know what your logic is there.
If you were using NodeJS, there is a parallel action that allows you to run multiple steps at once in parallel. But as you are using PHP that is not possible there.
problem im in South Africa… where NodeJS is luxury and constraints geologically … unless you have a great big budget for Amazon … you know the full story… ill just have to do with what i have … thanks for the suggestions.
Thank you… Im already doing that… as there are more steps infront of it. Even if I make it the LAST action. It will still do the same as Teodor said it runs sequentially. Basically it will only return n “success” when all done… so it will regardless wait for the API to do its thing… and then only “exit”
That API… its to send a whatsapp via Twilo. So its a post reqeust.
Don’t you have other cloud providers other than AWS? Any provider that allows you to setup a VPS should be fine, especially if you use Docker in Wappler.
Are you trying to instantly use the data? If not then you can close the model and figure out a way to process the data in the background.
There is a feature request to make app flows run as web workers, but at the moment they will run sequentially.
I used digital ocean before and hetzer but the latency is the biggest issue.
Yes the i guess the next step is to get a dedicated server and setup node on it…