All Products
Search
Document Center

Edge Security Acceleration:Functions and Pages

Last Updated:Nov 13, 2025

Functions and Pages is an all-in-one, full-stack development platform from Edge Security Acceleration (ESA). It integrates Git workflows, a global edge network, and an intelligent build system to provide a complete deployment solution. This solution allows enterprises and developers to manage the entire deployment process, from code commit to global distribution. The platform supports various use cases, such as static websites, Single-Page Applications (SPAs), Server-Side Rendering (SSR) applications, and Edge Functions. It is designed to meet diverse deployment needs, from personal projects to complex enterprise architectures.

Important

The Edge Routine feature of Edge Security Acceleration (ESA) is scheduled to be upgraded to Functions and Pages by the end of November 2025.

image

Core capabilities

  • Automated build and deployment: Functions and Pages natively supports GitHub and automatically detects code changes in the main branch to trigger builds and deployments.

  • Global edge distribution: Deploy Functions and Pages globally in seconds. All requests are routed to the nearest points of presence (POP) on a distributed network. This ensures that end users experience the lowest possible access latency.

  • Enterprise security, compliance, and Operations and Maintenance (O&M): Functions and Pages seamlessly integrates with ESA secure acceleration. This integration provides your Pages sites with security features such as Web Application Firewall (WAF), anti-DDoS, and bot management. The platform also supports phased releases for the production environment and includes a comprehensive monitoring and logging system. These features help ensure the stability of your services in the production environment.

  • Edge function capabilities: Functions and Pages provides low-latency edge function services based on V8 Isolate. This service supports automatic scaling, so you do not need to manage underlying infrastructure such as servers.

  • Developer-friendly experience: You can perform operations from multiple clients. The platform provides a web console, a command line interface (CLI), and RESTful APIs to support automated integration.

How it works

image
  • Check request type: When a client request arrives at an ESA POP, the POP identifies the request type. Requests for Functions and Pages are then routed to a dedicated module for optimized processing.

  • Process request content: The function module processes dynamic content. Static content is retrieved from the cache module or fetched from the origin server.

Terms

  • Function: A function is a JavaScript runtime environment that Alibaba Cloud provides on its edge to execute your uploaded JavaScript code. A function consists of two parts: its configuration, which includes the function name and description, and its code, which is the script that you upload.

  • Pages: Pages is an integrated frontend development and deployment platform built on the ESA infrastructure. It is designed for modern web development scenarios and allows developers to efficiently build and publish static sites and serverless applications. The platform integrates with functions to enable coordinated distribution of dynamic and static resources and execute business logic close to the user. This integration significantly improves content delivery efficiency, enhances interactive response performance, and supports low-latency access for global users.

  • Version: Functions and Pages supports version management. As you update your JS code, create a version by taking a snapshot of the code at a specific point. When you publish a function or a Pages project, select a version to publish. You can also roll back to previous versions and manage historical code. Each version has a version number that is automatically generated by the system. The platform also supports percentage-based phased releases. You can publish two versions of a function or Pages project at the same time and customize the traffic distribution ratio for each version. For example, configure Version 1 to receive 10% of the traffic and Version 2 to receive 90%. User requests are then routed to the corresponding versions based on the configured ratio. This feature enables fine-grained testing and controlled, progressive releases.

    image
  • Environment: Functions provide a staging environment and a production environment to meet your development, testing, and deployment needs:

    image
    • Staging environment: A staging environment is an independent POP used to test code. The staging environment simulates the production environment but is isolated from it. Modifications to the function configuration or code in the staging environment do not affect the production environment. To access the staging environment, you must add the provided staging IP address to your hosts file.

    • Production environment: The production environment, also known as the online environment, consists of many POPs distributed worldwide. After you test your code in the staging environment, you can publish it to the production environment. The preceding figure is for illustration only. Functions automatically adds or removes POPs based on your request volume, and the actual regional distribution of POPs may vary.

  • Domain Name: A domain name is used to call a function. Two trigger methods are supported: Custom Domains and Routes. Bind a domain name to forward all its traffic to a function. You can also use routing to forward a portion of a domain name's traffic to a function. For more information, see Configure a domain name.

Limitations

Feature

Item

Limitation

Description

Function

Response time

120s

The response time for a single execution of a function cannot exceed 120s. I/O wait time is included in the response time (RT).

Wait time

10s

The time that the gateway waits for a response from functions. If a function does not return any data within 10s, the gateway actively disconnects and returns an HTTP 504 status code to the client.

Code package size

4 MB

The maximum size of the JavaScript code file for each function.

Number of subrequests

4

The number of fetch requests that Functions allows in a single execution.

Development language

JavaScript (ES6 syntax)

Only JavaScript is supported. You need to have JavaScript programming skills.

Number of functions

50

Each Alibaba Cloud account can create a maximum of 50 functions.

Number of versions

10

Each function can save a maximum of 10 official versions.

Pages

Number of files

2,000

Each Pages project can have a maximum of 2,000 static files, such as HTML, CSS, JS, and image files.

Single file size

25 MB

A single file, such as a video, PDF, or JS package, can be up to 25 MB in size.

Package size

1,024 MB

The entire compressed source code package (deploy package) can be up to 1,024 MB in size.