Edge Compute Quick Start
Deploy serverless functions on Telnyx Edge Compute in under 5 minutes.Tutorial Objectives
This tutorial covers:- Deploying a function that responds globally in under 50ms.
- Learning the basic Edge Compute development workflow.
- Testing functions from anywhere in the world.
- Understanding edge computing in practice.
Prerequisites
- A Telnyx account with API access - Sign up here if needed.
- Command line familiarity - Requires Terminal (macOS/Linux) or Command Prompt (Windows).
- Time requirement - This guide takes approximately 5 minutes to complete.
Install the CLI
Download Binary
Download the latest release for your platform from the GitHub releases page. Extract the archive and add the binary to your PATH: Example for Linux/macOS:Authenticate
Option 1: OAuth (Recommended)
Authenticate using OAuth with your Telnyx account:Option 2: API Key
Alternatively, authenticate with a Telnyx API key:Verify Authentication
Check your authentication status:Create a Function
Create a simple “Hello World” function. Choose your preferred language:- Go
- Python
Function Code
The generatedhandler.go contains a basic HTTP handler:Deploy the Function
Navigate to the function directory and deploy:- Validate your function structure.
- Check authentication.
- Package your function files.
- Upload to Telnyx Edge infrastructure.
- Deploy across edge locations.
Test the Function
Your function is now deployed and accessible via HTTP. Functions are accessible at URLs following this pattern:https://{funcName}-{orgId}.telnyxcompute.com
Test your deployed function:
Success! The Function is Live
Your function is now running and ready to handle HTTP requests. Functions automatically scale based on demand.Building on the Basics
Common implementation patterns include:Handle Different HTTP Methods
- Go
- Python
Use Environment Variables
- Go
- Python
Parse Query Parameters
- Go
- Python
Next Steps
The edge function has been successfully deployed. Explore these topics next:Explore More Languages
Try creating functions in different languages:Learn Core Concepts
- Function Fundamentals - Understanding function lifecycle and configuration.
- Environment Variables - Managing secrets and configuration.
Integrate with Telnyx Services
- Voice, Messaging & AI Examples - Process calls, SMS, and AI requests at the edge.
Common Commands
Here are the most frequently used CLI commands:Getting Help
Need help? Here are your options:- Community Discord - Connect with other developers.
- Support Portal - Get technical support.