Hi, I’m trying to understand worker/isolate reuse behavior in Supabase Edge Functions.
Setup:
SUPABASE_DB_URL)concurrency=1)What I see:
supabase functions serve), workers are reused as expectedbooted (time: 130-170ms) [worker id:xxxxxx] started [worker id:xxxxxx] accepted request: 1 [worker id:xxxxxx] request #1 processed for 100-700ms
So for many requests I see:
accepted request: 1Locally, reuse looks normal:
[worker id:abc123] accepted request: 1 [worker id:abc123] accepted request: 2 [worker id:abc123] accepted request: 3
Questions:
concurrency=1?Thanks! I can share more logs if helpful.
The user is experiencing unexpected behavior with Supabase Edge Functions where fresh workers are frequently created for sequential requests in production, despite expected reuse. They are seeking clarification on whether this behavior is normal and how it affects performance optimizations like in-memory caching and pooled connections.
Thank you, but it's now EarlyDrop because I see addEventListener('beforeunload', () => {}) after 200000ms