Supabase Edge Functions now support running background tasks outside of the request handler. This for example allows us to return a streaming response immediately while in the background uploading the stream to Supabase Storage.
- Find the docs: [ Ссылка ]
- Find the code: [ Ссылка ]
CHAPTERS:
00:00 Intro
00:15 Background Tasks
00:26 Code Walkthrough
00:30 Create an OpenAI Speech stream
01:20 Implement a Background Task Event
02:20 Create a global Event Listener
02:58 Implement the request handler
03:26 Branch the stream with Readablestream.tee
03:58 Upload to Supabase Storage in the background
💻 Videos to watch next:
▶ [ Ссылка ]
▶ [ Ссылка ]
▶ [ Ссылка ]
👇 Learn more about Supabase 👇
🕸 Website: [ Ссылка ]
🏁 Get started: [ Ссылка ]
📄 Docs: [ Ссылка ]
🔔 Subscribe for more tutorials and feature updates from Supabase: [ Ссылка ]
📱 Connect with Us:
🐙 Github: [ Ссылка ]
💬 Discord: [ Ссылка ]
🐦 Twitter: [ Ссылка ]
▶ Instagram (follow for memes): [ Ссылка ]
ABOUT SUPABASE:
Supabase is the open source Firebase alternative. Supabase provides a full Postgres database for every project with pgvector, backups, realtime, and more. Add and manage email and password, passwordless, OAuth, and mobile logins to your project through a suite of identity providers and APIs.
Build in a weekend, scale to millions.
#Supabase #AppDevelopment #RealtimeApps #DeveloperTools
Ещё видео!