Data Forwarding

Overview

Data forwarding is seamlessly interconnected with other HUAWEI CLOUD services to implement full-stack services for device data storage, computing, and analysis. The IoT platform can forward data to the following services:
  • Data Ingestion Service (DIS): The platform works with DIS for efficient data collection, transmission, and distribution. You can download data by using the SDKs or APIs provided by DIS. You can also dump data to other cloud services (Object Storage Service (OBS), MapReduce Service (MRS), Data Warehouse Service (DWS), and Data Lake Insight (DLI)) for subsequent data processing like data storage and analysis.
  • Distributed Message Service (DMS) for Kafka: The platform works with DMS for Kafka to provide message queues for device data. Kafka is distributed messaging middleware that features high throughput, data persistence, horizontal scalability, and stream data processing. It adopts the publish-subscribe pattern and is widely used for log collection, data streaming, online/offline system analytics, and real-time monitoring. You can apply for instances as required and customize partitions and replicas for topics in the instances. The instances can be used right out of the box, taking off the deployment and O&M workload for you so that you can focus on developing your services.
  • Object Storage Service (OBS): The platform works with OBS for persistent device data storage. OBS is an object-based massive storage service that provides secure, reliable, and low-cost data storage. It can archive, back up, and store data reported by devices. OBS can work with Cloud Stream Service (CS) to analyze streaming data in real time. The analysis result can be used for data visualization in other cloud services or third-party applications.
  • ROMA Connect: The platform works with the Message Queue Service (MQS) component of ROMA Connect to provide a secure, standard message channel between the platform and applications. MQS is enterprise-level messaging middleware that uses Kafka and a unified message access mechanism. It provides basic and advanced functions to offer a unified message channel for enterprise data management. The basic functions include message publish and subscription, topic management, user permissions management, resource statistics, monitoring, and alarming. The advanced functions include message tracking, network isolation, and integration of cloud and on-premises applications.
  • Third-party application (HTTP push): An application calls the platform APIs Creating a Rule Trigger Condition, Creating a Rule Action, and Modifying a Rule Trigger Condition to configure and activate rules. The platform pushes the changed device service details and management details to the application with a specified URL. (Service details include device lifecycle management, device data reporting, device message status, and device status. Management details include software/firmware upgrade status and results.)
  • AMQP message queue: Data can be forwarded without interconnecting with other HUAWEI CLOUD services. An application calls the platform APIs Creating a Rule Trigger Condition, Creating a Rule Action, and Modifying a Rule Trigger Condition to configure and activate rules. After connecting to the AMQP client, the platform pushes the changes to a specified AMQP message queue based on the type of data subscribed. For details, see AMQP Subscription/Push.

To further explore data forwarding, see Forwarding Device Data to OBS for Long-Term Storage.

Procedure

  1. Log in to the IoTDA console.
  2. In the navigation pane, choose Rules > Data Forwarding, and click Create Rule in the upper right corner.
  3. Set forwarding data and click Create Rule.

    Parameter

    Description

    Rule Name

    Specify the name of a rule to create.

    Description

    Describe the rule.

    Data Source

    • Device: Device information, such as device addition, deletion, and update, will be forwarded. When Data Source is set to Device, quick configuration is not supported.
    • Device property: A property value reported by a device in a resource space will be forwarded. Click Quick Configuration on the right and select the product, property, and service data to forward.
    • Device message: A message reported by a device in a resource space will be forwarded. Click Quick Configuration on the right and select data of a specified topic to forward. Select the product to which the topic belongs and enter the topic name. You can use a custom topic on the product details page or a preset topic.
    • Device message status: The status of device messages exchanged between the device and platform will be forwarded. For details on the device message status, see Message Status. When Data Source is set to Device message status, quick configuration is not supported.
    • Device status: The status change of a directly connected device in a resource space will be forwarded. Click Quick Configuration on the right to forward information about devices whose status is Online, Offline, or Abnormal to other services. For details on the status of devices directly connected to the IoT platform, see Device Status.
    • Batch task: The batch task status will be forwarded. When Data Source is set to Batch Task, quick configuration is not supported.

    Trigger

    After the data source is selected, the platform automatically matches the trigger event.

    Resource Space

    You can select a single resource space or all resource spaces. If All resource spaces is selected, quick configuration is not supported.

  4. Click the Set Forwarding Target tab, and then click Add to set a forwarding target.

    Select Data Ingestion Service (DIS), Distributed Message Service (DMS) for Kafka, Object Storage Service (OBS), ROMA Connect, Third-party application (HTTP push), or AMQP message queue based on projects requirements.

    Parameter

    Value

    Description

    Forwarding Target

    Data Ingestion Service (DIS)

    • Region: Select the region of the service to which data will be forwarded. If you are not authorized to access the service in this region, perform authorization as required.
    • Stream Homing: You can select either of the following:
      • In-house stream: Select a stream. If no DIS stream is available, create one on the DIS console.
      • Delegated by others: You can use DIS streams authorized by other users. Obtain the stream ID from the DIS console.
        NOTE:

        Ensure that the upload permission policy has been added on the DIS console. For details, see Managing Authorization.

    Distributed Message Service (DMS) for Kafka

    NOTE:

    Data can be forwarded only to Kafka premium instances.

    • Region: Select the region of the service to which data will be forwarded. If you are not authorized to access the service in this region, perform authorization as required.
    • Connection Address: Obtain the connection address by following the instructions provided in Accessing a Kafka Premium Instance with SASL. Basic and standard instances support only access to Kafka premium instances over the Internet. Enterprise instances support access to Kafka premium instances over a private network.
    • Topic: Set this parameter as required.
    • Data Transmission Encryption: If data transmission encryption is enabled, enter the SASL username and password that you entered when buying a Kafka instance.

    Object Storage Service (OBS)

    • Region: Select the region of the service to which data will be forwarded. If you are not authorized to access the service in this region, perform authorization as required.
    • OBS Bucket: Select a bucket as required. If no OBS bucket is available, create one on the OBS console.

    ROMA Connect

    NOTE:

    Currently, only data of instances of Enterprise Edition can be forwarded to ROMA Connect.

    Third-party application (HTTP push)

    You can use HTTP or HTTPS to push messages. For details on how to set parameters, see HTTP/HTTPS Subscription/Push.

    AMQP message queue

    Message Queue: Select the queue to which messages are to be pushed. If no queue is available, create one. For details on the restrictions on message queue names, see Configuring AMQP Server Subscription.

  5. Start a rule.

    After the rule is configured, click Enable Rule to start data forwarding.