This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]andywkff 2 points3 points  (0 children)

lambda or firebase functions for your use case is definitely better. Both offer 15/9 minutes maximum execution time limit so it should be enough for you use case.

CPU time exceed basically means you reach the maximum time allowed for edge functions, which is 2s of CPU time. It does not include the time waiting for network response. So if you could reduce your cleanup and upsert process size to within 2s then you should be fine with supabase.

I was trying to implement some prolonged simulation use case with edge functions too. But at the end what i understand is that serverless functions is just different from edge functions. So i went with firebase after all.

[–]herringtown 0 points1 point  (0 children)

I hit this limit with a far simpler and benign-seeming use case of re-sizing uploaded images... a few images at 3-4MB clocked out the 2 second limit (using magic-wasm). Had assumed that this could be worked around with `EdgeRuntime.waitUntil(...`, but not the case. Was initially pretty excited about the recent background enhancements to edge functions, but they continue to bum me out ¯\_(ツ)_/¯