You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
With thousand of pages and personalization of every page based on user permissions at the edge, the edge data file quickly reaches a few megabytes because we need to store build time data to use in edge blocks for every page.
Based on our experience, once the file reaches over a 1MB we start experiencing cold start delays on Netlify and pages crashing for a while until that data gets loaded and available in memory.
We're already using global data for user attributes, icons, incoming query params, cookies, but injecting page contents in the edge function would require making all of that content available at the edge, which isn't practical.
It would be nice if edge data could get stored inside the page built by 11ty instead of a global data file. This would scale much better.
To Reproduce
Create a huge edge data file and try loading a page from Netlify CDN (you cannot reproduce the problem locally using CLI). You'll get a 'Edge function has crashed' error page.
Expected behavior
Page should render
Eleventy Version
2.0.0-canary.16
The text was updated successfully, but these errors were encountered:
What template language are you using here? I’d guess that Nunjucks templates scale much worse, as they are required to be precompiled to the data file.
Hey sorry for the delayed reply, I missed your message.
We're using Nunjucks. It just didn't scale, so we refactored our site to not use Netlify edge at this time, we've replaced all that personalization code with web components on the client. It's unfortunate, the tech was really promising, but our data file was getting enormous. We optimized it, but it became so constraining that some of the things we wanted to do were impossible without getting the datafile to become a few megabytes.
We could have split content personalization between 11ty Edge for simple things and client side web components for more advanced contextualized rendering of content, but using 2 different approaches mixing SSR and CSR to solve what is basically the same problem didn't make sense.
So it's all client side for now. I'll keep looking at this though, if this scalability issue gets resolved we're huge fans of 11ty Edge.
Per the Eleventy Community Survey results and our refocus and prioritization towards our roots as a static site generator, we’re going to be deprecating Edge in 3.0 and closing issues related to the Edge plugin. I’m very sorry to have to do this—but unfortunately this was a necessary decision to allow the project to continue forward.
Describe the bug
With thousand of pages and personalization of every page based on user permissions at the edge, the edge data file quickly reaches a few megabytes because we need to store build time data to use in edge blocks for every page.
Based on our experience, once the file reaches over a 1MB we start experiencing cold start delays on Netlify and pages crashing for a while until that data gets loaded and available in memory.
We're already using global data for user attributes, icons, incoming query params, cookies, but injecting page contents in the edge function would require making all of that content available at the edge, which isn't practical.
It would be nice if edge data could get stored inside the page built by 11ty instead of a global data file. This would scale much better.
To Reproduce
Create a huge edge data file and try loading a page from Netlify CDN (you cannot reproduce the problem locally using CLI). You'll get a 'Edge function has crashed' error page.
Expected behavior
Page should render
2.0.0-canary.16
The text was updated successfully, but these errors were encountered: