4 ms·
I don't get it, how is this useful? - Takes 1.5 seconds to run, so there goes the "edge" benefit. - And if it takes that long, it would cost more than having
by tmikaeld 3y ago
I don't get it, how is this useful?
- Takes 1.5 seconds to run, so there goes the "edge" benefit.
- And if it takes that long, it would cost more than having it running on a proper instance/vps.
- wongarsu 3y agoIt's "serverless", so - if you have infrequent access patterns you don't pay for the time it isn't used; and - if you have huge bursts (say your AI project gets on the homepage of hacker news) capacity automatically scales with demand. In return each compute-second costs more than a normal vps, so there is some threshold where doing it yourself is more cost effective. The benefit of "edge" here is imho that it works together with other cloudflare "edge" stuff. Not hugely useful for OCR, but imagine your blog on Cloudflare Pages has a contact form (with a CF Pages Function) and you want an AI spam filter; or bot detection that is updated each time a page is visited, or in the auth function you have offloaded to a CF Worker; or if you want to enhance your email-triggered worker with AI.