All Products
Search
Document Center

Function Compute:Create a function

Last Updated:Jul 29, 2025

Function Compute offers four function types: event function, web function, task function, and GPU function, each suited to different scenarios. Choose as needed and see the related documentation for creation procedures.

Function type comparison

The features and use cases of each function type are as follows:

Comparison item

Event function

Web function

Task function

GPU function

Features

Processes files and data streams.

Works with various event triggers (such as Object Storage Service (OSS) triggers, ApsaraMQ for Kafka triggers, and Simple Log Service triggers).

Supports mainstream web application frameworks.

Can be accessed through a browser or invoked via a URL.

Handles asynchronous requests and records the state at every stage of processing.

Supports container images for popular AI projects (such as Stable Diffusion WebUI, ComfyUI, RAG, and TensorRT), enabling you to rapidly build and deploy model inference services.

Use cases

  • Integration with other Alibaba Cloud services: such as real-time processing of OSS files and Simple Log Service log processing

  • Extract, transform, load (ETL): such as database cleansing and message queuing and processing

  • Rapid development of applications with popular web frameworks: such as SpringBoot, Express, and Flask

  • Migration of existing applications: such as HTML5 websites, REST APIs, BFFs, mobile apps, mini programs, and game settlement services

  • Regular task handling: such as scheduled, periodic, and script tasks

  • Multimedia processing: such as audio and video transcoding, live stream recording, and image processing

  • Traditional online inference: such as computer vision (CV) and natural language processing (NLP)

  • AIGC inference: such as text-to-text, text-to-image, and text-to-audio generation