Deno Edge Functions
Globally distributed TypeScript functions to execute custom business logic.
Stage:
Beta
Available on self-hosted:
Yes
Supabase's Deno Edge Functions allow you to deploy and run custom TypeScript functions globally at the edge, bringing your code closer to users for enhanced performance and reduced latency.
Key features
- Global distribution: Edge Functions run close to users, reducing latency.
- TypeScript support: Leverage TypeScript's type safety and modern language features.
- Deno runtime: Benefit from Deno's security-first approach and modern JavaScript APIs.
- Seamless integration: Easy integration with other Supabase services like Auth and Database.
- Versatile use cases: Support for webhooks, third-party integrations, and custom API endpoints.
- Open-source and portable: Run locally or on any Deno-compatible platform.
- Rich ecosystem: Wide range of examples and integrations available.
Benefits:
- Low-latency responses: Ideal for globally distributed applications.
- Scalability: Automatically handle varying loads without manual intervention.
- Flexibility: Extend Supabase project capabilities beyond database operations.
- Developer-friendly: Fast deployments and rollbacks for agile development.
Deno Edge Functions are valuable for:
- API backends requiring low-latency responses globally
- Serverless applications needing custom logic close to users
- Webhook handlers for third-party service integrations
- Real-time data processing and transformation
- Custom authentication and authorization flows
- Integration with various services (e.g., Stripe, OpenAI, Hugging Face)
- Building bots for platforms like Discord and Telegram
Supabase's Deno Edge Functions enable you to build responsive, globally distributed applications with custom server-side logic, supporting a wide range of use cases and integrations.