- Documentation
Volcano Engine Function as a Service
User guide
Functions
Trigger management
Creating RocketMQ triggers
Trigger management
Creating RocketMQ triggers
Creating RocketMQ triggers
veFaaS can be integrated with Message Queue for RocketMQ of Volcano Engine. You can create a RocketMQ trigger. In this way, veFaaS will consume messages from RocketMQ as a consumer and pass the messages to the user function. This triggers function code execution. You only need to write the function that processes the messages without the need to worry about the details of how veFaaS consumes messages. This topic describes how to create RocketMQ triggers. Prerequisites
- The VPC access feature has been enabled for the target function, which needs to be deployed in the same VPC as the RocketMQ instance to be used. For detailed operations, see Configuring functions.
- After enabling or modifying the VPC access configuration of the function, you need to perform a full release again. For detailed operations, refer to Releasing a function.
- A RocketMQ instance, Topic, Consumer Group, and access key have been created. The access key is used for managing the ACL permissions of Message Queue for RocketMQ and must include subscription permissions. For detailed operations, see Getting started with RocketMQ.
Limits
- You can create up to 20 triggers for each function.
- The RocketMQ instance and function must be deployed in the same VPC.
- To modify the VPC or subnet of a function, you must first disable or delete all MQ triggers.
- After a RocketMQ trigger is created, you cannot change its RocketMQ instance, Topic, or Consumer Group.
Procedure
- In the top navigation bar, select the target region.
- In the function list, find the function for which you want to create a trigger and click its name.
- On the function details page, click Create trigger on the Trigger tab.
- In the Create trigger panel, specify the parameters as required.
- Click Confirm to create the RocketMQ trigger.
tip
The creation process may take 1 to 2 minutes. After the trigger is created, you can query the corresponding Consumer client information in the Message Queue for RocketMQ console.
Validating results
- You can view the information about the created RMQ trigger on the Trigger tab of the current function.
- Message Queue for RocketMQ console
- In the detailed information of the Consumer Group that corresponds to the RMQ instance, you can view the newly added Consumer client information. This client corresponds to the current function.
tip
Status synchronization may take minutes.
What to do next
Last updated: 2026.08.19 14:06:06