ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseโ€ข7mo agoโ€ข
4 replies
mike177

Edge Functions Not Running In Parallel

I have an app with the following architecture:

1. Front received a request.
2. Triggers a supabase edge function that serves as the gateway.
3. Calling a google cloud run endpoint that does heavy processing that takes up to a minute.
4. Response is being returned to supabase edge function for light parsing.
5. Response sent back to front.

I am using parallelism to send multiple requests from the front to the same edge function using to following code snippet:

const response = await fetch(
${SUPABASE_URL}/functions/v1/<function-name>
${SUPABASE_URL}/functions/v1/<function-name>
, {
method: 'POST',
headers: {
'Authorization':
Bearer ${session.access_token}
Bearer ${session.access_token}

},
body: JSON.stringify(cloudRunRequest)
});

yet it seems to create a queue of requests for the same edge function, that runs procedurally, and causes time to pile up and or me to reach the timeout of 400 seconds (pro license).

Any ideas why it happens and how can I make it multiple instances of the same edge function to truly run in parallel?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

My ALL edge functions stopped running
SupabaseSSupabase / help-and-questions
2mo ago
Running Edge Functions at set interval
SupabaseSSupabase / help-and-questions
4y ago
Edge Functions not updating
SupabaseSSupabase / help-and-questions
6mo ago
Directories in edge functions.
SupabaseSSupabase / help-and-questions
4y ago