What is Function Compute
Function Compute (FC) is an event-driven, fully managed computing service. Write and upload your code, and Function Compute automatically prepares the elastic, reliable computing resources needed to run it, with no servers or infrastructure to manage.
By default, Function Compute bills you based on resource usage. Resource usage is calculated by multiplying the resources configured for a function by its execution duration. Resources are allocated only when required and are promptly released after use. For more information, see Billing overview.
Video introduction
What is Function Compute
Function Compute lets you quickly build any type of application or function, and you pay only for the resources that your tasks consume.
What is serverless
Unlike traditional server-based computing, serverless computing allows developers to focus on application logic instead of managing servers. It also uses a pay-as-you-go billing model.
Differences from traditional computing resources
In a traditional client-server model, servers are always on and running services, regardless of whether they receive requests.
Function Compute, however, uses a serverless architecture. It executes functions only when requests are received and promptly releases function instances afterward. This way, you pay only for the resources that you consume and no longer need to manage servers.
What can Function Compute do
|
Application scenario |
Why use Function Compute |
Example |
Build web applicationsFunction Compute provides ready-to-use templates for popular web applications that help you quickly build and iterate your applications. As your business expands, features such as log query, performance monitoring, and alerting help ensure that your web applications run efficiently and reliably. |
Function Compute is highly elastic, which makes it ideal for web applications that handle traffic bursts, such as during sales promotions. |
Use the Flask framework template to create a function and efficiently develop your web application. An existing web application can also be migrated to a web function. For more information, see Use a web function to quickly create a web application. |
Real-time data processingAs an event-driven service, Function Compute can be automatically triggered by various sources, such as HTTP requests, Object Storage Service (OSS), and message queues. For example, use an OSS trigger to process uploaded files in real time. Multiple functions, message queues, and databases can also be orchestrated to collect large amounts of data from Internet of Things (IoT) devices. When your scenario changes, adapt your application by modifying event triggers and integrating new components, without making major changes to your business code. |
Function Compute integrates with multiple Alibaba Cloud services to help you easily build an event-driven architecture for various data processing scenarios. |
You can use Function Compute to automatically decompress ZIP files uploaded to OSS. For more information, see Use Function Compute to automatically decompress ZIP files uploaded to OSS. |
AI model serviceAfter an AI model is trained, use Function Compute to provide an inference service. Package the data model into a function that runs only when a user request is received. |
GPU-accelerated instances in Function Compute allow developers to focus on their business logic without managing the underlying GPU infrastructure, greatly simplifying implementation. |
Use a Large Language Model (LLM) container image and a GPU function to quickly deploy a chatbot application. For more information, see Deploy a Google Gemma model service at a low cost using Function Compute.
|
Audio and video processingCombine Function Compute and CloudFlow to orchestrate your business processes using a visual interface. Compared with traditional solutions, this approach offers significant advantages in performance, cost, and engineering efficiency. |
Function Compute can provision many computing resources in a short period, which makes it ideal for computation-intensive scenarios such as image, audio, and video processing. |
Define a workflow to schedule multiple functions in parallel and build a high-performance video transcoding system. For more information, see Build an elastic and highly available audio and video processing system based on a serverless architecture. |
How to use Function Compute
Refer to the following Quick Start tutorials to learn about Function Compute console operations and the development workflow of Function Compute:
In addition to the console, Function Compute can be used in the following ways:
-
Use Function Compute with the Serverless Devs tool. For more information, see What is Serverless Devs.
-
Use Function Compute through an API or SDK. For more information, see SDK Reference.
