1chbinamin
Explore posts from serversCDCloudflare Developers
•Created by 1chbinamin on 7/11/2024 in #workers-help
Is Workers viable for running a function that takes minutes to complete?
Thanks btw
9 replies
CDCloudflare Developers
•Created by 1chbinamin on 7/11/2024 in #workers-help
Is Workers viable for running a function that takes minutes to complete?
I suppose a cronjob perhaps or anything similar.
9 replies
CDCloudflare Developers
•Created by 1chbinamin on 7/11/2024 in #workers-help
Is Workers viable for running a function that takes minutes to complete?
Yes, it is that link you’ve sent here. I forgot to mention that I did put a code to block the foreground of the whole application while the API is running. I did not want my users to navigate to other pages and abort the API call. Now I want to prevent this by running the API call process somewhere in the background while the user can still use the app. What do you mean by "just not having the result be awaited"? If I understand it correctly, the API call fetch should be awaited, or else I get a Promise object as a result. How else can I get the real result?
9 replies
CDCloudflare Developers
•Created by 1chbinamin on 7/11/2024 in #workers-help
Is Workers viable for running a function that takes minutes to complete?
Sorry, I also forgot to mention that the user can navigate from current page where the pagespeed api is executed to another page. So I suppose that the client (I think by that you meant the page where the worker is called) is not actually connected the moment when the user navigates to another page?
And what do you mean with “having it block your next.js app)?
9 replies
CDCloudflare Developers
•Created by 1chbinamin on 6/30/2024 in #pages-help
How to set a max limit on requests & CPU time to prevent pay-as-you-go charges and unexpected bills?
Then would it be risky to use a subscription based tier since there might be DDOS attacks going on? Or is this something that Cloudflare can take care of?
4 replies
No VAT taxes on invoices
Understood, thank you for the answer. I suppose this is how the American companies operate in most cases. If this isn't applicable right now, then it will be no problem, as I can respond to the IRS in that manner if they contact me about this invoice.
15 replies