Function Compute

A secure and stable, elastically scaled, O&M-free, pay-as-you-go, serverless computing platform.

Alibaba Cloud Function Compute is a fully managed, event-driven compute service. Function Compute allows you to focus on writing and uploading code without having to manage infrastructure such as servers. Function Compute provides compute resources to run code flexibly and reliably. Additionally, Function Compute provides a generous amount of free resources. No fees are incurred for up to 1,000,000 invocations and 400,000 CU-second compute resources per month.

Benefits

Efficient and O&M-free
Function Compute frees you from purchasing servers, configuring load balancers and resource scaling, and other O&M operations so that you can focus on developing business logic and writing core code. This simplifies service construction and speeds up development and iteration.
Elastic and Highly Available
Function Compute automatically scales and mobilizes computing resources within milliseconds to handle traffic peaks.

The reserved instance feature will provide enhanced performance and help you easily migrate online applications to Function Compute as well as avoid latency glitches caused by cold start.
Low Cost on Demand
Function Compute provides flexible billing methods for a variety of scenarios to save costs.

The pay-as-you-go method charges you for instances you have used. The subscription method allows you to purchase computing powers based on estimated business load. The combination of pay-as-you-go and subscription instances effectively reduces costs.
Stable and Highly Reliable
Function Compute is deployed in distributed clusters that are located in multiple zones.

If a natural disaster or power failure causes a zone to become unavailable, Function Compute automatically uses instances in another zone of the same region to run functions and ensure high service availability.

Features

Different Types of Triggers

Function Compute associates event sources with triggers. An associated event source triggers a function to execute either synchronously or asynchronously when an event occurs. The change event is passed as an input parameter to the entry function.

OSS Trigger

Automatically triggers function execution when bucket objects are changed.

Tablestore Trigger

Passes change information as an input parameter to trigger function execution when table data is changed.

Log Service Trigger

Regularly obtains updated logs and triggers functions for custom log processing.

MNS trigger

Writes functions to process messages published on topics in real time.

CDN trigger

Writes functions for customized processing of CDN events such as refreshing and prefetching.

HTTP trigger

Receives and processes HTTP requests as well as returns HTTP responses.

Time trigger

Triggers function execution at a specified time point.

Multiple Programming Languages

Function Compute supports multiple programming languages and custom runtimes.

Node.js

Node.js 6, Node.js 8, and Node.js 10 are supported.
Node.js runtimes configured with HTTP triggers are compatible with Express, a Node.js web application framework.

Python

Python 2.7 and Python 3 are supported.
Python runtimes configured with HTTP triggers comply with the WSGI specification.

Java

Java 8 is supported.
Java runtimes configured with HTTP triggers are based on the Servlet protocol.

PHP

PHP 7.2 is supported.
PHP runtimes configured with HTTP triggers comply with the PSR standard (HTTP message interfaces).

C#

.NET Core 2.1 is supported.
C# runtimes configured with HTTP triggers comply with .NET Standard 2.0.

Custom Runtimes

Customizes execution environments for multiple languages such as Go, Ruby, and Lua.
Applications can be directly migrated to Function Compute by one click.

Convenient Development Tools

Function Compute provides convenient development tools to help you smoothly develop, debug, and deploy applications in local environments.

funcraft

An application development tool for you to create resources, debug locally, and install third-party dependencies online.

Visual Studio Code Extensions

The development, debugging, and deployment tools based on Visual Studio Code to help you create, debug, run, and deploy functions.

Various Resource Types

Function Compute supports a variety of resource types to improve computing performance.

Reserved Instance

Allows you to assign and release instances for functions. The always-on instances completely eliminate the latency glitch caused by cold start.

Pay-as-you-go Instances

Dynamically allocates instances based on requests to handle traffic peaks.

Flexible Billing Methods

Function Compute provides flexible billing methods for a variety of scenarios to save costs.

Pay-as-you-go

You are charged for instances you have used.

Subscription

You can purchase computing powers based on estimated business load. The combination of pay-as-you-go and subscription instances effectively reduces costs.

Typical Scenarios

  • Real-time Data Processing
  • AI Reasoning
  • Video Transcoding
Web Applications

Web Applications

Build Elastic and Highly Available Serverless Web Applications in Ten Minutes

O&M-free Function Compute allows frontend engineers to build cloud-native web applications by writing business code. This effectively improves the publication and iteration efficiency and reduces O&M costs.

Benefits

  • Frees You from O&M Operations and Allows You to Build Applications More Efficiently

    Frontend engineers can focus on business logic development and Function Compute performs cluster O&M operations to improve the development and O&M efficiency.

  • Elastically Handles Load Peaks and Valleys with High Availability Features

    Instances can be automatically scaled and scheduled within milliseconds to handle traffic peaks. The reserved instance feature will help you avoid latency glitches caused by cold start and easily migrate online applications to Function Compute.

  • Provides Cost-effective and High-performance Services

    Function Compute provides flexible billing methods for a variety of scenarios to save costs.

  • Smoothly Migrates Traditional Applications to Function Compute

    Function Compute supports multiple programming languages and custom runtimes, and is also compatible with traditional application frameworks. You can smoothly migrate traditional applications to Function Compute.

Related Services

Real-time Data Processing

Real-time Data Processing

Build Data Processing Systems Based on Event Sources

Function Compute provides multiple event sources. The event triggering mechanism can process data in real time with just a few lines of code and simple configurations. For example, the mechanism can decompress OSS packages, cleanse logs generated by Log Service or Tablestore data, and customize consumption of MNS messages.

Benefits

  • Integrates Multiple Easy-to-configure Event Sources

    Function Compute supports multiple event sources to process event source data by using simple configuration.

  • Flexibly Customizes Processing Logic

    Function Compute allows you to flexibly customize processing logic based on business scenarios.

Related Services

AI Reasoning

AI Reasoning

Provides the Serverless Architecture for AI Engineers to Focus on Algorithms

O&M-free and elastically scalable Function Compute allows algorithm engineers to convert trained models into elastic and highly available reasoning services.

Benefits

  • Enables AI Engineers to Focus More on Algorithms and Avoid Complex O&M Operations

    Artificial intelligence (AI) engineers can focus on algorithm model training and business logic development. Function Compute performs cluster O&M operations to improve work efficiency.

  • Mobilizes Tens of Thousands of Computing Resources to Eliminate the Computing Power Bottleneck

    Function Compute has an abundance of computing resources that can be elastically scaled within milliseconds. Function Compute can quickly mobilize tens of thousands of computing resources to smoothly handle traffic peaks.

  • Provides Multiple Versions for A/B Testing to Reduce Model-launching Risks

    Function Compute provides the multi-version feature and supports the canary release strategy for models. This allows you to implement A/B testing on algorithms to reduce model-launching risks.

  • Installs Third-party Libraries by One Click to Smoothly Debug in Local Environments

    Function Compute upgrades the toolchain to improve the installation process of third-party libraries such as TensorFlow and PyTorch. You can deploy your applications to Alibaba Cloud by one click.

Related Services

Video Transcoding

Video Transcoding

Build Elastic and Highly Available Video Processing System Based on the Serverless Architecture

Function Compute and Function Flow can be used together to create elastic and highly available Serverless video processing systems that have enhanced performance and efficiency as well as lower costs.

Benefits

  • Flexible Transcoding: Supports Custom Transcoding Processing Logic

    You can customize video transcoding functions and logic.

  • Low Cost: Provides Costs Reductions of Over 75%

    Function Compute provides flexible billing methods for a variety of scenarios to save costs.

  • Parallel Transcoding: Automatically Scales Based on the Number of Video Files

    When multiple video files are uploaded at the same time, Function Compute automatically performs scaling in milliseconds to mobilize computing resources and process multiple files in parallel. You are only charged for the resources you have used.

  • Fast Migration: Lower Migration Costs and Simplified Operations

    FFmpeg-related commands can be directly run in Function Compute. FFmpeg-based services deployed on virtual machines can be migrated to Function Compute at low costs.