Overview
Containers vs Isolates
Edge Compute uses real containers, not V8 isolates. This gives you:| Feature | V8 Isolates (Cloudflare) | Containers (Telnyx) |
|---|---|---|
| Languages | JavaScript/WASM only | Python, Go, Node.js, Java |
| Runtime | Reimplemented web APIs | Native runtimes, full stdlib |
| File system | None | Full POSIX filesystem |
| Cold start | ~5ms | ~100-500ms |
| Dependencies | Limited, bundled | Any native packages |
| Process model | Single-threaded | Multi-process capable |
- Need native packages (ML libraries, image processing, etc.)
- Porting existing server code
- Require language-specific features not available in V8
- Need filesystem access
Request Lifecycle
When a request arrives at your function:1. Routing
The request hits the nearest edge location. TLS is terminated, and the request is routed to your function based on the URL:2. Container Selection
The platform selects a container to handle the request:- Warm container available → Request handled immediately (~1-5ms routing overhead)
- No warm container → Cold start: new container initialized (~100-500ms)
3. Execution
Your function code runs with:- Full network access (outbound HTTP, TCP, UDP)
- Environment variables and secrets injected
- Bindings for Telnyx services
4. Response
The response is returned to the caller. The container stays warm for subsequent requests.Cold Starts
A cold start occurs when a new container must be initialized:- Keep containers warm — Consistent traffic keeps containers alive
- Lazy initialization — Defer expensive setup until needed
- Minimize dependencies — Smaller images = faster starts
- Use connection pools — Initialize once, reuse across requests
Edge Network
Functions run on Telnyx’s edge infrastructure across multiple locations:| Region | Location | Status |
|---|---|---|
| North America | Atlanta | ✅ Live |
| North America | New York | ✅ Live |
| North America | Los Angeles | ✅ Live |
| Europe | Frankfurt | ✅ Live |
| Asia Pacific | Sydney | ✅ Live |
Scaling
Edge Compute automatically scales based on traffic:Security
Isolation
Each function runs in its own isolated container:- Network isolation — Functions cannot communicate with each other directly
- Filesystem isolation — No shared filesystem between functions
- Process isolation — Separate process namespace
Credentials
API credentials are never exposed in your code:Internal Architecture
For those curious about the internals:| Component | Purpose |
|---|---|
| ECG (Edge Compute Gateway) | API gateway, function management, routing |
| KNative | Serverless runtime, auto-scaling, revision management |
| Kourier | Ingress controller, TLS termination |
| Meter Reader | Usage metering for billing |
Next Steps
- Execution Model — Deep dive into function lifecycle
- Limits — Resource constraints
- Bindings — Connect to Telnyx services