This topic describes the features of Simple Message Queue (SMQ, formerly MNS) as the trigger of a function and its outputting function results to queues or topics, along with the references for configuring them.
As the trigger of a function
Features
You can use the queues or topics of SMQ as an event source to trigger function. When a message is generated, and the rules defined for a trigger is met, the message can automatically invoke the function associated with the trigger.
References
Use a queue as the trigger of a function. For more information, see SMQ queue triggers.
Use a topic as the trigger of a function. For more information, see SMQ topic triggers.
Output function results to queues or topics
Features
SMQ sends data generated during function processing or result data to its own queues or topics.
References
You need to perform asynchronous invocation configuration in the Function ompute console and set the configured destination service to SMQ. For more information, see Configure the destination service for asynchronous invocations.
For sending messages to queues, see Sample code of sending messages to queues.
For sending messages to topics, see Sample code of sending messages to topics.