Supabase Edge Functions run on Deno Deploy and are far more capable than simple REST handlers. This guide covers three advanced patterns every indie developer should know: streaming responses (for LLM integrations), WebSocket upgrades (for real-time features), and background jobs using EdgeRuntime.waitUntil . Pattern 1: Streaming Responses (SSE) The most common use case is streaming LLM output without blocking the client. // supabase/functions/stream-ai/index.ts import { serve } from ' https://deno.land/std@0.168.0/http/server.ts ' serve ( async ( req ) => { const { prompt } = await req . json () const upstream = await fetch ( ' https://api.anthropic.com/v1/messages ' , { method : ' POST ' , headers : { ' x-api-key ' : Deno . env . get ( ' ANTHROPIC_API_KEY ' ) ! , ' anthropic-version ' : ' 2023-06-01 ' , ' content-type ' : ' application/json ' , }, body : JSON .…