DEV Community

Discussion on: Cloudflare Workers KV Introduction

 
kayis profile image
K • Edited

Haha, could be tight.

TFJS ES2017 is 818KB and CFW allow 1 MB max :D

Edit: I also read TFJS uses WebGL, which might not be available in CFW. I saw they support a WebAssembly alternative, but I don't know if that will get you over 1 MB.

Thread Thread
 
byrro profile image
Renato Byrro • Edited

Sure, yes, I mean using TFJS in the browser, backed by models stored in CF KV.

Wasn't aware of the 1 MB payload limit in Workers. What's the point if KV can store up to 10 MB? At first glance, I would presume Workers should be able to support at least the same limits as KV...

But anyway, models could be stored statically in the CDN anyway

Thread Thread
 
kayis profile image
K

Oh, I didn't mean payload. I meant script size.

Don't know really about the payload.