All Products
Search
Document Center

Function Compute:Function creation

Last Updated:Jun 02, 2026

Function Compute offers four function types — event, web, task, and GPU — for different scenarios. Compare them below to choose the right type for your workload.

Function type comparison

Compare the four function types:

Comparison item

Event function

Web function

Task function

GPU function

Features

Processes files and data streams.

Works with event triggers such as Object Storage Service (OSS) triggers, Kafka triggers, and Simple log service triggers.

Supports mainstream web frameworks.

Accessible via browser or URL.

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

Provides container images for popular AI projects (Stable Diffusion WebUI, ComfyUI, RAG, TensorRT) to quickly build and deploy model inference services.

Use cases

  • Alibaba Cloud service integration: real-time OSS file processing, Simple Log Service log processing

  • ETL: database cleansing, message queue processing

  • Web framework development: SpringBoot, Express, and Flask

  • Application migration: HTML5 websites, REST APIs, BFFs, mobile apps, mini programs, game settlement services

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

  • Multimedia processing: audio/video transcoding, live stream recording, image processing

  • Traditional online inference: computer vision (CV), natural language processing (NLP)

  • AIGC inference: text-to-text, text-to-image, text-to-audio generation