Edge Functions
Deploy serverless code that runs closer to your users. Zero cold starts, instant scaling, and support for JavaScript, TypeScript, and WebAssembly. Perfect for dynamic rendering and API routes.
Technical Specifications:
Runtime
Node.js 20, Go, Rust, Python
Cold Start
< 10ms (V8 Isolate)
Max Memory
3 GB per function
Max Duration
30s (Default) / 15m (Bg)
Deployment
Global (35 Regions)
Works seamlessly with:
Example 1
Example 2
Example 3
functions
Product Capabilities
Instant Scale
Scale from 0 to 1M requests instantly without provisioning servers or managing clusters.
Secure Isolation
Each function runs in its own memory space. Memory is reclaimed immediately after execution.
Global Deployment
Code is automatically replicated to 35+ regions worldwide for lowest latency.
Experience
Built for Developers
Write standard code. We handle the bundling, transpilation, and distribution. Support for ES Modules, WASM, and standard Web APIs.
- Define your runtime configuration.
- Export a default asynchronous handler function.
- Return a standard Response object with JSON data and status codes.