Edge Developer Platform
  • Pages
    • Product Introduction
    • Billing
      • Billing Overview
      • Package
        • Plan Comparison
        • Free Plan
        • Pro Plan
        • Commercial Plan
        • Purchase and Renewal Guide
      • Plan Consumption and Usage
      • Billing Rules
        • Resource Billing Description
        • MU Billing Overview
      • Overdue Payments and Refunds
        • Overdue Payments and Plan Expiration
        • Refund
      • Billing FAQs
    • Quick Start
      • Agent Development
      • Importing a Git Repository
      • Starting From a Template
      • Direct Upload
      • Start with AI
    • Framework Guide
      • Agent
      • Frontends
        • Vite
        • React
        • Vue
        • Hugo
        • Other Frameworks
      • Backends
      • Full-stack
        • Next.js
        • Nuxt
        • Astro
        • React Router
        • SvelteKit
        • TanStack Start
        • Vike
      • Custom 404 Page
    • Space Guide
      • Space Management
    • Project Guide
      • Project Management
      • edgeone.json
      • Configuring Cache
      • Building Output Configuration
      • Error Codes
    • Build Guide
    • Deployment Guide
      • Overview
      • Create Deploys
      • Manage Deploys
      • Deploy Button
      • Using Github Actions
      • Using Gitlab CI/CD
      • Using CNB Plugin
      • Using IDE PlugIn
      • Using CodeBuddy IDE
    • Domain Management
      • Overview
      • Custom Domain
      • HTTPS Configuration
        • Overview
        • Apply for Free Certificate
        • Using Managed SSL Certificate
      • Configure DNS CNAME Record
    • Observability
      • Overview
      • Metric Analysis
      • Log Analysis
    • Makers for Platforms
      • Platform and Multi-Tenancy
      • Vibe Coding Solution
      • Platform Request Middleware
      • Template Example
        • Vibe Coding General Template
        • Vibe Coding Platform Template
    • Functions
      • Overview
      • Edge Functions
      • Cloud Functions
        • Overview
        • Node.js
        • Python
        • Go
    • Agents
      • Overview
      • Quick Start
      • Conversation Management
      • Observability
      • Sandbox Tool
        • Overview
        • Using the Agent Framework
        • Sandbox Atomic API
        • Network Search Tool
      • Agent Authentication
    • Models
      • Overview
      • Models and Vendors
        • Overview
        • Using the Zhuque Model
        • Using the Jev Model
        • Using Vendor Keys
          • OpenAI
          • Anthropic
          • Google AI Studio
          • DeepSeek
          • MiniMax
          • Hunyuan
          • Zhipu
          • MoonShot AI
      • FAQs
    • Storage
      • Overview
      • KV
      • Blob
    • Middleware
    • AI-Native Development
      • Skills
      • MCP
      • Plugin
    • Copilot
      • Overview
      • Quick Start
    • API Token
    • EdgeOne CLI
    • Makers SDK
      • Overview
      • Examples
        • Creating a Deployment
        • Deploying via the CLI
        • Project Management
      • Projects
        • Project Operations
        • Environment Variable
      • Deployment
      • Domain
    • Message Notification
    • Access Permission
    • Integration Guide
      • AI
        • Makers Models Integration
        • Large Models for Images Integration
      • Database
        • Supabase Integration
        • Pages KV Integration
      • Ecommerce
        • Shopify Integration
        • WooCommerce Integration
      • Payment
        • Stripe Integration
        • Integrating Paddle
      • CMS
        • WordPress Integration
        • Contentful Integration
        • Sanity Integration
        • Payload Integration
      • Authentication
        • Supabase Integration
        • Clerk Integration
      • IM
        • Overview
        • WeCom
        • Feishu
        • DingTalk
        • Telegram
        • slack
        • Discord
    • Best Practices
      • Adding an AI Chat Assistant to a Website
      • AI Dialogue Deployment: Deploy Project with One Sentence Using Skill
      • Building Agent Applications Quickly with Makers Agents
      • Building an Ecommerce Platform with Shopify
      • Building a SaaS Site Using Supabase and Stripe
      • Building a Company Brand Site Quickly
      • How to Quickly Build a Blog Site
      • Quick Launch via Login-Free Deployment in WorkBuddy
    • Migration Guides
      • Migrating from Vercel to EdgeOne Makers
      • Migrating from Cloudflare Pages to EdgeOne Makers
      • Migrating from Netlify to EdgeOne Makers
    • Troubleshooting
    • FAQs
    • Contact Us
    • Release Notes

Overview

Introduction

Cloud Functions is a cloud function service provided by Makers. It is suitable for complex backend scenarios that require accessing external services, operating databases, or handling compute-intensive tasks.

Supported runtime

Cloud Functions supports various mainstream programming languages and runtime environments. You can select the appropriate runtime based on your business needs.

Node.js

Supports JavaScript or TypeScript development. You can access the complete npm ecosystem directly and leverage the mature Node.js toolchain to build applications.

Python

Supports development using Python and integrates third-party libraries via pip. Offers native support for mainstream Web frameworks such as Flask, FastAPI, Django, and Sanic.

Go

Leverage the excellent concurrency capability and execution performance of Golang to build high-performance backend services, and support project dependency management through Go Modules.
Note:
For detailed configuration, built-in APIs, and usage examples of each runtime, see the corresponding Node.js, Python, or Go detailed documentation.

Multi-Region Deployment

Cloud Functions supports deployment in multiple regions. You can choose the region for function execution and deploy functions closer to the data source, thereby reducing network latency and improving response speed.
Note:
Multi-region deployment is applicable only to Cloud Functions.

Region Selection

The region of Cloud Functions corresponds to the Acceleration Region of the project. Only one function region can be selected for each acceleration region:
Acceleration region
Configurable Function Region
Global AZ (including Chinese mainland)
One region in the Chinese mainland and one region outside the Chinese mainland
Chinese mainland AZ
One region in the Chinese mainland
Global AZ (excluding Chinese mainland)
One region outside the Chinese mainland
By default, the Chinese mainland region is ap-guangzhou (Guangzhou), and regions outside the Chinese mainland are ap-singapore (Singapore).
The support for function regions by each plan is as follows:
Package
Function Region
Free
Uses the default region and does not support modification.
Pro
Can be modified in selectable regions.
Commercial
Supports multiple regions or custom regions. Contact us for customization.

Optional Region List

Section
Region name
Region ID
Chinese mainland
Guangzhou
ap-guangzhou
Beijing
ap-beijing
Nanjing
ap-nanjing
Outside the Chinese mainland - Asia Pacific
Singapore
ap-singapore
Hong Kong (China)
ap-hongkong
Outside the Chinese mainland - North America
Silicon Valley
na-siliconvalley
Outside the Chinese mainland - Europe
Frankfurt
eu-frankfurt

Configuration Method

Configure in the console

Select the deployment region in Function Management under Project Settings in the Makers console. The change will take effect upon the next deployment.

Configure in edgeone.json

In the edgeone.json file, specify the function deployment region through the mainlandRegions and overseasRegions fields, and configure as needed based on the acceleration region of the project.
{
"mainlandRegions": ["ap-beijing"],
"overseasRegions": ["ap-hongkong"]
}
Note:
Each field in the array can only be configured with one region.
edgeone.json: The region configuration priority in edgeone.json is higher than the console configuration.
The free edition does not support modifying the function region.

Use Limits

The following are the general restrictions and runtime version info for Cloud Functions:
Content
Limitation
Note
Code package size
Free edition 128 MB, Pro edition 250 MB
Maximum supported size of a single function code package (including dependencies). Customizable in the commercial edition.
Request/response body size
6 MB
The request/response body in client requests supports up to 6 MB.
maximum execution time
The maximum allowed time from the start to the response of a single request (Maximum Duration) is 30s by default. For configuration, refer to the document.
Node.js version
v20.x
Default Node.js runtime version
Python version
3.10
The server runtime environment is Python 3.10. We recommend using the same version for local development.
Go version
1.26
Runtime environment version 1.26 (backward compatibility)
Note:
When involved in file transfer, it is not recommended to store data that needs long-term retention. We recommend using Tencent Cloud COS to handle persistence needs.