All Products
Search
Document Center

Function Compute:Overview

Last Updated:Nov 19, 2024

In addition to common triggers of Function Compute for specific scenarios, such as scheduled tasks and API operations, Function Compute provides event triggers for Alibaba Cloud services. Event triggers for Alibaba Cloud services feature automatic integration between different systems, real-time responsiveness, and flexible application scenarios. Event triggers for Alibaba Cloud services are triggered by using EventBridge, which provides a centralized event management system to manage events from different Alibaba Cloud services. You can select a trigger type based on your business requirements.

What are event triggers for Alibaba Cloud services?

In an event-driven model, event sources produce events, functions process events, and triggers are used to manage event sources in a centralized manner. EventBridge is not a single event source, but an event hub for Alibaba Cloud event sources. EventBridge can be integrated with virtually all Alibaba Cloud services, such as elastic computing services, storage services, database services, container services, big data services, observability services, and middleware services. Triggers based on EventBridge allow you to use Alibaba Cloud events as sources to invoke functions. The following figure shows the process.

image

Benefits

  • Automatic integration

    After EventBridge is integrated with Function Compute, the trigger sources of EventBridge and Function Compute are synchronized. After you add an event source in EventBridge, Function Compute synchronously updates trigger sources. This simplifies the way you use Function Compute.

  • Scalability

    Configurations of native triggers are relatively simple. If you need to implement more complex logic, such as setting multiple file prefix and suffix filter conditions for an Object Storage Service (OSS) trigger or associating more than 10 triggers with a bucket, you can use the OSS trigger of the Event triggers for Alibaba Cloud services type. For more information, see Overview.

  • Real-time and enhanced reliability

    EventBridge is used to deliver events with low latency and high throughput. This ensures that events can be delivered to the destination functions in a timely and reliable manner. EventBridge also provides the event retry and dead-letter queue mechanisms to enhance system stability and reliability.

Sample scenarios

  • Data processing and analysis

    Event triggers for Alibaba Cloud services can be used in data processing and analysis scenarios. For example, you can specify that a function is automatically triggered to perform operations, such as image compression, format conversion, or content moderation, when a file is uploaded to Object Storage Service.

  • Resource management and optimization

    Event triggers for Alibaba Cloud services can be used in resource management and optimization scenarios. For example, you can specify to automatically change related resources when the status of an Elastic Compute Service (ECS) instance changes, such as when it starts, stops, or restarts.

For information about more scenarios, see Supported Alibaba Cloud services and event types.

Supported Alibaba Cloud services and event types

Event triggers for Alibaba Cloud services refer to triggers created for events from Alibaba Cloud services such as CloudMonitor, Elastic Compute Service (ECS), and Alibaba Cloud IoT services. The following table shows the supported Alibaba Cloud services and event types.

Elastic computing

ECS events

ECS events include the following types: a disk is retained, a data disk is attached or detached, and a block storage is released due to overdue payments.

ECI events

Elastic Container Instance (ECI) events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

E-HPC events

Elastic High Performance Computing (E-HPC) events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Batch Compute events

Batch Compute events include the following types: a job is canceled, an instance is ready, and a project is created.

Auto Scaling events

Auto Scaling events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

ROS events

Resource Orchestration Service (ROS) events include the following types: a stack is created, a stack is deleted, and a stack is rolled back.

OOS events

CloudOps Orchestration Service events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Function Compute events

Function Compute events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Storage

OSS events

Object Storage Service (OSS) events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Tablestore events

Tablestore events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

NAS events

File Storage NAS(NAS) events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Database File System events

Database File System events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Intelligent Media Management events

Intelligent Media Management events include the following types: the metadata of an object is indexed, the metadata of a file is updated, and the metadata of a file is deleted.

Cloud Photos events

Cloud Photos events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Database

PolarDB events

PolarDB events include the following types: a failover occurs between the primary and secondary instances, an instance failure ends, and an instance failure starts.

PolarDB-X events

PolarDB-X events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

ApsaraDB RDS events

ApsaraDB RDS events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

ApsaraDB for HBase events

ApsaraDB for HBase events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

ApsaraDB for Cassandra events

ApsaraDB for Cassandra events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

AnalyticDB for MySQL events

AnalyticDB for MySQL events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

DTS events

Data Transmission Service (DTS) events include the following types: an exception occurs in a migration task, a migration task is resumed, and an error occurs in a migration task.

AnalyticDB for PostgreSQL events

AnalyticDB for PostgreSQL events include the following types: the CPU usage of a compute group exceeds 90%, the memory usage of a compute group exceeds 85%, and the disk usage of a compute group exceeds 80%.

DBS events

Database Backup (DBS) events include the following types: incremental backup is disabled, an exception occurs during incremental backup, and an exception occurs during data restoration.

Tair (Redis OSS-Compatible) events

Tair (Redis OSS-compatible) events include the following types: a failover occurs between the primary and secondary instances, an instance failure ends, and an instance failure starts.

ApsaraDB for MongoDB events

ApsaraDB for MongoDB events include the following types: a failover occurs between the primary and secondary instances, an instance failure ends, and an instance failure starts.

ApsaraDB RDS for MySQL events

ApsaraDB RDS for MySQL events include the following types: the execution of an elastic plan is delayed and the execution of an elastic plan fails.

TSDB events

Time Series Database (TSDB) events include the following types: a resource change notification is delivered and a notification that indicates a resource is evaluated as non-compliant is delivered.

Security

Security Center events

Security Center events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Cloud Security Scanner events

Cloud Security Scanner events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

ActionTrail events

ActionTrail events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

RAM events

Resource Access Management (RAM) events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

DBAudit events

DBAudit events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

KMS events

Key Management Service (KMS) events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Fraud Detection events

Fraud Detection events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Server Guard events

Server Guard events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Anti-DDoS events

Anti-DDoS events include the following types: blackhole filtering occurs, traffic scrubbing occurs, and blackhole filtering stops.

CFW events

Cloud Firewall (CFW) events include the following types: the peak Internet bandwidth exceeds the specification limit and a security event triggers an alert.

WAF events

Web Application Firewall (WAF) events include the following types: an access control attack occurs, an HTTP flood attack occurs, and a web attack occurs.

Big data

EMR events

E-MapReduce (EMR) events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Elasticsearch events

Elasticsearch events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Hologres events

Hologres events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

OpenSearch events

OpenSearch events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Quick BI events

Quick BI events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

DataV events

DataV events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

AIRec events

Artificial Intelligence Recommendation (AIRec) events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

AI

City Visual Intelligence Engine events

City Visual Intelligence Engine events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Multimedia AI events

Multimedia AI events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Networking and CDN

VPC events

Virtual Private Cloud (VPC) events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

SLB events

Server Load Balancer (SLB) events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

CEN events

Cloud Enterprise Network (CEN) events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Smart Access Gateway events

Smart Access Gateway events include the following types: an access point fails over, the network is disconnected, and a device is under attack.

CDN events

Alibaba Cloud CDN (CDN) events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

ESA events

Dynamic Route for CDN (DCDN) events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

ENS events

Edge Node Service (ENS) events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

VPN Gateway events

VPN Gateway events include the following types: a certificate expires, a health check fails, and a health check is successful.

PrivateLink events

PrivateLink events include the following types: an endpoint connection request is accepted, an endpoint connection request is rejected, and one or more zones are added to an endpoint connection.

Alibaba Cloud DNS PrivateZone events

Alibaba Cloud DNS PrivateZone events include the following type: the number of Domain Name System (DNS) requests per second within the current account exceeds the upper limit.

Alibaba Cloud DNS events

Alibaba Cloud DNS events include the following types: a high-level remote control attack is detected, a high-level mining activity is detected, and a high-level malware is detected.

Video services

ApsaraVideo Live events

ApsaraVideo Live events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Real-Time Communication events

Real-Time Communication events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

ApsaraVideo VOD events

ApsaraVideo VOD events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Cloud Conferencing events

Cloud Conferencing events include the following types: the status of a conference changes, the status of a member changes, and an operation is performed by a member.

ApsaraVideo Media Processing events

ApsaraVideo Media Processing events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

LinkVisual events

LinkVisual events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Containers and middleware

ACK events

ACK events include the following types: an ACK event collected by Application Real-Time Monitoring Service (ARMS) occurs, an ACK event related to nodes occurs, and an ACK event related to pods occurs.

Container Registry events

Container Registry events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

MSE events

Microservices Engine (MSE) events include the following types: an instance is gracefully shut down, an outlier instance is removed, and an outlier instance is recovered.

EDAS events

Enterprise Distributed Application Service (EDAS) events include the following type: an application is changed.

ApsaraMQ for Kafka events

ApsaraMQ for Kafka events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

ApsaraMQ for RocketMQ events

ApsaraMQ for RocketMQ events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, an operation is performed in the console, a resource change notification is delivered, and a notification that indicates a resource is evaluated as non-compliant is delivered.

Development and O&M

ARMS events

ARMS events include the following types: an agent is started, a deadlock issue occurs, and an out-of-memory issue occurs.

CloudMonitor events

CloudMonitor events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

PTS events

Performance Testing Service (PTS) events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Cloud Config events

Cloud Config events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, an operation is performed in the console, and a configuration item is changed.

Resource Management events

Resource Management events include the following types: a resource change notification is delivered and a notification that indicates a resource is evaluated as non-compliant is delivered.

Domains and websites

Domains events

Domains events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

IoT

IoT Platform events

IoT Platform events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Enterprise applications and services

BaaS events

Blockchain as a Service (BaaS) events include the following types: an operation is performed by Alibaba Cloud on a resource, an API operation is called, and an operation is performed in the console.

Enterprise service and cloud communication

Direct Mail events

Direct Mail events include the following types: an email fails to be sent, an email is sent, an email is clicked, and an email is opened.

More information

You cannot use Serverless Devs to create event triggers for Alibaba Cloud services. You can create event triggers for Alibaba Cloud services by calling API operations or by using the Function Compute console. You can refer to the following topics to learn more: