3 ms·
It feels the CDN edge functions are the new Jamstack. It's fast but comes at a high cost and the excitement shifted from static pages to literally data distribu
by jimmy2020 5y ago
It feels the CDN edge functions are the new Jamstack. It's fast but comes at a high cost and the excitement shifted from static pages to literally data distributed near the user.
- kiwicopple 5y agoedge functions was an obvious complement for us. we already have database functions [0] which can be executed through a REST api (database co-location is great for data-intensive operations). Edge Functions are deployed to 29 regions globally, which means that you can use them for low-cost, low-latency operations. [0] Postgres Functions: https://supabase.com/docs/guides/database/functions https://supabase.com/docs/guides/database/functions
- marcus_cemes 5y agoStatic pages relied on the client being able to run JS to populate user-specific data. Also, a lot of data is fine with being eventually consistent, which is a good fit for edge functions. An example is rendering the account icon and username on the top write, without hitting a central database/static file server.