Introduction

The best practice for HUAWEI CLOUD FunctionGraph guides you through sensitive information filtering based on a function.

Scenarios

When using the Distributed Message Service (DMS) to store important information, such as messages, determine whether messages stored in a specified DMS queue contain sensitive information, such as political statements and advertisements, and are not suitable for publishing.

Procedure

  • On the DMS console, create a message queue and consumer group, and create a message.
  • On the FunctionGraph console, create a function with a DMS trigger to poll the created queue for messages.
  • The function reads and processes the created message, and determines whether the information contained in the message is suitable for publishing.