Telnyx Edge Compute
Deploy serverless functions at the edge with minimal cold starts, powerful processing capabilities, and seamless integration with Telnyx API.What is Telnyx Edge Compute?
Telnyx Edge Compute is a serverless platform that runs code on Telnyx’s global edge infrastructure. Functions are deployed closer to users worldwide, reducing latency and improving performance for real-time applications.Key Benefits
- Low Latency: Functions run on edge nodes closest to users.
- Global Distribution: Automatic deployment across Telnyx’s worldwide network.
- Minimal Cold Starts: Optimized runtime with fast function initialization.
- Telnyx Integration: Direct access to AI APIs with reduced latency.
- Multi-Language Support: Go, JavaScript, Python, TypeScript, Rust, and Java support.
- Simple Deployment: Deploy with a single CLI command.
Use Cases
Function Deployment
- Instant Scaling: Deploy functions across Telnyx’s global edge in seconds.
- Low-Latency Execution: Run code close to users for faster responses.
- Auto-Routing: Trigger functions directly via HTTP or event-based endpoints.
Data Processing
- Real-Time Analytics: Process streaming data at the edge.
- Content Transformation: Image, video, and document processing.
- Caching Layer: Dynamic content caching with custom logic.
- Data Validation: Validate and sanitize data before storage.
Secure Integrations
- Secret Management: Inject API keys and tokens at runtime, encrypted at rest.
- Isolated Execution: Run logic in contained environments for compliance.
- Policy Enforcement: Apply validation and security rules at the edge.
How It Works
- Create Functions: Use
telnyx-edge new-functo generate function templates. - Write Code: Implement your function logic in the preferred language.
- Deploy with CLI: Use
telnyx-edge shipto publish functions. - Automatic Scaling: Functions scale automatically based on traffic.
- Global Distribution: Functions deploy to edge locations worldwide.
Supported Runtimes
| Runtime | Language | Template Available |
|---|---|---|
| Go | Go 1.25+ | ✅ go |
| Python | Python 3.11+ | ✅ python |
| Java | Java 17+ | ✅ quarkus |
Integration with Telnyx Services
Edge Compute functions have optimized access to Telnyx services:Voice Services
AI Services
Messaging Services
Getting Started
Ready to deploy edge functions? Check out these guides:- Quick Start Guide - Deploy functions in 5 minutes.
- CLI Setup - Install and configure the CLI.
- Function Basics - Learn core concepts and patterns.
- Language Guides - Runtime-specific examples.
Pricing
Edge Compute is billed monthly based on the total number of function requests and the total CPU time consumed across all invocations.You only pay for what you use beyond the free monthly allowances.
| Metric | Free Allowance (per month) | Rate (beyond free allowance) |
|---|---|---|
| Requests | 3.6 million | $0.21 per million requests |
| CPU Time | 36 million CPU milliseconds | $0.014 per million CPU ms |
Example
During one billing month your functions process 8.6 million requests and consume 96 million CPU ms:| Metric | Usage | Free Allowance | Billable Units | Rate | Cost |
|---|---|---|---|---|---|
| Requests | 8.6 M | 3.6 M | 5.0 M | $0.21 / M | $1.05 |
| CPU Time | 96 M | 36 M | 60 M | $0.014 / M | $0.84 |
| Total | $1.89 for the month |
Support
- Documentation: Complete guides and API reference.
- Community: Developer community on Discord.
- Support: Get help from our technical team.
- Status Page: Real-time platform status and incident reports.