Re:Porting my website to Workers Sites and Zola
by steveklabnik on Friday September 27, 2019 @03:15PM
(#21095347)
I'm the PM on KV, and you're absolutely right. I am interested in possibly raising this limit. Large media like videos will probably never make sense for KV, but discounting situations like that, what would the limit be that you'd never have to worry about running into it 99.9% of the time?
[ Parent
| on HN ]
Re:Porting my website to Workers Sites and Zola
by judge2020 on Friday September 27, 2019 @03:44PM
(#21095597)
Perhaps 5-10mb, but there's a wide range of websites that go from really heavy to really light. I don't think workers should accommodate for installing all 10 of the top 10 most-used frameworks with tree shaking disabled, but 2mb is limiting and raising it would make it viable for many more existing sites.
Re:Porting my website to Workers Sites and Zola
by steveklabnik on Friday September 27, 2019 @03:47PM
(#21095623)
Thanks for the input :)
Re:Porting my website to Workers Sites and Zola
by EatonZ on Friday September 27, 2019 @06:56PM
(#21097024)
Building a non-prod Angular project produces a 7 MB js file, so the 2 MB limit definitely needs to be raised. I think it would make sense to have a higher limit for certain file types, like js and html.
I am very interested in this feature, but the limit is a bit concerning right now.
Re:Porting my website to Workers Sites and Zola
by steveklabnik on Friday September 27, 2019 @08:33PM
(#21097518)
Thanks! To give some context here, KV is also implemented as a worker, and we encrypt your contents, so we’re also subject to CPU limits. There’s a trade off here and experience reports are super valuable, so thanks :)
Re:Porting my website to Workers Sites and Zola
by EatonZ on Friday September 27, 2019 @09:52PM
(#21097857)
As a workaround maybe you could, behind the scenes, split large files into 2 (or more) key-value pairs, and then bill appropriately for the use of 2 key-value pairs instead of just 1.
Re:Porting my website to Workers Sites and Zola
by steveklabnik on Saturday September 28, 2019 @10:33AM
(#21100474)
Possibly, yeah! You won't necessarily get a ton of speed that way...
Re:Porting my website to Workers Sites and Zola
by judge2020 on Saturday September 28, 2019 @11:13AM
(#21100733)
This is how my file stitching logic works, and it's actually pretty fast (some reported 2mbps-30mbps depending if the DC had those keys locally cached), it's just incrementally more expensive for each 2mb increase in file size. https://github.com/judge2020/cloudflare-file-hosting/tree/dd... But it might be a little much for this to be a first-party solution.
Re:Porting my website to Workers Sites and Zola
by steveklabnik on Saturday September 28, 2019 @02:17PM
(#21101943)
Thanks for the tip. By the way, line 84 introduces some unneeded serialization; you could get some more speed there by fetching the bits in parallel.