Home / Companies / Supabase / Blog / Post Details
Content Deep Dive

Persistent Storage and 97% Faster Cold Starts for Edge Functions

Blog post from Supabase

Post Details
Company
Date Published
Author
Laktek and Nyannyacha
Word Count
677
Language
English
Hacker News Points
-
Summary

Accessing an S3 bucket from Edge Functions can be optimized by configuring environment variables within Edge Function Secrets, which is particularly useful for tasks like reading and transforming data stored in an S3 bucket for applications such as an IoT app. Recent improvements have significantly reduced function boot times by moving workers performing initial script evaluations to a dedicated blocking pool, thus preventing heavy initialization tasks from hindering the performance of the Tokio thread pool. This optimization has enabled the use of synchronous File APIs during function boot time, which is beneficial for libraries supporting only synchronous File APIs like SQLite, and has resulted in more predictable boot times and faster cold starts. These changes are now deployed and available across all regions, enhancing the runtime efficiency for Supabase Edge Functions, which previously faced delays due to large dependencies or preparatory tasks. The improvements have led to substantial reductions in boot time metrics, ensuring a more efficient and responsive environment for high-traffic projects.