This topic was translated by AI and is currently in queue for revision by our editors. Alibaba Cloud does not guarantee the accuracy of AI-translated content. Request expedited revision

Create a function

Updated at: 2025-03-25 03:17

To meet user requirements in different scenarios, Function Compute provides four function types: event functions, web functions, task functions, and GPU functions. You can select a function type based on your business scenario and then follow the specific creation steps in the corresponding function creation document.

Select a function type

When using Function Compute, you can select a suitable function type based on your business scenario and technology stack preference.

Comparison item

Event function

Web function

Task function

GPU function

Comparison item

Event function

Web function

Task function

GPU function

Features

Used for processing files and data streams, can be triggered by events from various cloud products (such as OSS trigger, Kafka trigger, SLS trigger).

Supports mainstream web application frameworks and can be accessed through a browser or invoked using a URL.

Used for processing asynchronous requests and can track and save the states of an asynchronous invocation in each phase.

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

Scenarios

  • Cloud product integration: OSS real-time file processing, SLS log transformation, etc.

  • ETL data processing: Database data cleansing, message queue processing, etc.

  • Quickly build applications with popular web frameworks: SpringBoot, Express, Flask, etc.

  • Migrate existing applications: HTML5 websites, REST API, BFF, mobile apps, mini programs, game settlement, etc.

  • Regular tasks: Scheduled tasks, periodic tasks, script tasks, etc.

  • Multimedia processing: Audio and video transcoding, live recording, image processing, etc.

  • Traditional online inference: CV visual detection, NLP language processing, etc.

  • AIGC model inference: Text-to-text, text-to-image, text-to-audio, etc.

  • On this page (1)
  • Select a function type
Feedback