---
title: "Persistent Storage and 97% Faster Cold Starts for Edge Functions"
description: "Supabase Edge Functions can now mount any S3-compatible bucket, including Supabase Storage, as a POSIX-like directory under /s3, configured through four S3FS_* environment secrets."
url: "https://swe.quest/articles/persistent-storage-and-97-faster-cold-starts-for-edge-functions-c2ecae788df86c95"
canonical: "https://supabase.com/blog/persistent-storage-for-faster-edge-functions"
source: "Supabase"
published: "2025-07-18"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 4
tags: ["serverless","performance","storage-systems","multi-tenancy"]
---

# Persistent Storage and 97% Faster Cold Starts for Edge Functions

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2025-07-18, 4 min read, Announcement. Original: [https://supabase.com/blog/persistent-storage-for-faster-edge-functions](https://supabase.com/blog/persistent-storage-for-faster-edge-functions)

## Summary

Supabase Edge Functions can now mount any S3-compatible bucket, including Supabase Storage, as a POSIX-like directory under /s3, configured through four S3FS\_\* environment secrets. One example reads a SQLite backup from S3 into memory and pushes aggregates to Postgres. Cold starts improved after workers still doing initial script evaluation were moved off the shared cooperatively scheduled Tokio thread pool onto a dedicated blocking pool, so heavy startup work no longer stalls neighbouring functions. In the benchmark, average boot time fell from 870 ms to 42 ms and P99 from 15 s to 460 ms. Synchronous file APIs are now allowed during initial script evaluation only, not inside request handlers or timers.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)
- [Multi-tenancy](https://swe.quest/tags/multi-tenancy.md) (Architecture & design)

## Prerequisites

- Deno runtime basics
- S3 object storage ([easy posts on Storage systems](https://swe.quest/tags/storage-systems.md?difficulty=easy))

## Keywords

Supabase Edge Functions, Deno, S3, Tokio, SQLite, Supabase Storage

## Related posts

- [Edge Functions are now available in Supabase](https://swe.quest/articles/edge-functions-are-now-available-in-supabase-3c06235615e01037.md): Supabase · 2022-03-31 · Easy · 7 min read · Serverless, CDN & edge, TypeScript, System design
  Supabase Edge Functions run TypeScript globally on the Deno runtime via Deno Deploy across 30+ data centers.
- [Supabase Edge Functions: Introducing Background Tasks, Ephemeral Storage, and WebSockets](https://swe.quest/articles/supabase-edge-functions-introducing-background-tasks-ephemeral-storage-and-e15d228ef0b3c73e.md): Supabase · 2024-12-03 · Medium · 6 min read · Serverless, Real-time systems, JavaScript
  Supabase Edge Functions gain background tasks, ephemeral /tmp file storage, and inbound/outbound WebSocket support.
- [Supabase Edge Runtime: Self-hosted Deno Functions](https://swe.quest/articles/supabase-edge-runtime-self-hosted-deno-functions-55b12d1d5db96506.md): Supabase · 2023-04-11 · Medium · 7 min read · Serverless, Runtimes & VMs, JavaScript, Rust, Open source
  Supabase Edge Runtime is an MIT-licensed, Rust-based web server built on deno\_core that self-hosts Deno Edge Functions (TypeScript, JavaScript, WASM) without code changes.
- [Edge Functions are now 2x smaller and boot 3x faster](https://swe.quest/articles/edge-functions-are-now-2x-smaller-and-boot-3x-faster-9496468dafb32c35.md): Supabase · 2024-09-12 · Medium · 4 min read · Serverless, Performance engineering, Rust, JavaScript
  Supabase Edge Functions that use npm modules now bundle roughly half as large and boot several times faster.
- [Executing Dynamic JavaScript Code on Supabase with Edge Functions](https://swe.quest/articles/executing-dynamic-javascript-code-on-supabase-with-edge-functions-453a9cbf7d5eb761.md): Supabase · 2024-11-13 · Medium · 11 min read · Serverless, PostgreSQL, JavaScript, Security
  Supabase Edge Functions can execute arbitrary JavaScript sent in the request body by wrapping it in an async \`new Function()\` that receives a preconfigured service-role Supabase client, so business logic can change without redeploying.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
