Data Forwarding Overview
IoT Platform lets you use SQL scripts to process data from device topics and forward the processed data to other topics or Alibaba Cloud products for storage or processing.
What is data forwarding
When devices communicate with IoT Platform using topics, you can write SQL statements to process topic data and configure rules to forward the results to other device topics or Alibaba Cloud services.
|
Data destination |
Description |
References |
|
Forwards data to another device's topic to enable M2M communication. |
||
|
Subscribes to a consumer group through an AMQP server-side subscription to forward device messages to your business server. |
||
|
Forwards device data to Alibaba Cloud products for storage. |
||
|
Forwards device data to DataHub. You can then use Realtime Compute for stream computing or MaxCompute for large-scale offline computing. |
||
|
Forwards device data to Message Queue for Apache RocketMQ or Simple Message Queue (formerly MNS) (SMQ) for highly reliable data consumption. |
||
|
Forwards device data to Function Compute for event-driven computing. |
Data forwarding flow
With data forwarding, you can build a full-stack service for data collection, processing, and storage without purchasing servers to deploy a distributed architecture.
Usage notes
-
You can forward device data using either server-side subscription or data forwarding. Select a method based on your business scenario. For more information, see Comparison of data forwarding methods.
-
When you forward device data to other Alibaba Cloud products, make sure that the destination product is available in the target region and supports data forwarding in the required format. For more information, see Features by region.
Limits
|
Limitations |
Description |
Limit |
|
Number of rules |
A maximum of 1,000 rules can be set for an instance. |
1,000 |
|
Number of destinations |
A rule can contain a maximum of 10 data forwarding operations. |
10 |
|
Message forwarding TPS |
RAM users share the quota of the Alibaba Cloud account. Message forwarding TPS is calculated as follows:
Within the same second, n messages may be forwarded to the data forwarding service and then to m destinations. The message forwarding TPS is calculated based on the following rules:
Note
|
|
|
Destination requirements |
Data forwarding depends on the destination Alibaba Cloud service. Make sure the instance of the destination service is running as expected. Message forwarding may fail due to exceptions such as instance downtime, overdue payments, parameter errors (such as authorization changes or invalid values), or configuration errors of the destination service. |
None |
|
Message deduplication |
During data forwarding, the same message may be sent multiple times to ensure delivery, until the client returns an ACK or the message expires. The same message has the same message ID. You can deduplicate messages based on their message IDs. |
None |
Guides
-
Configure a data forwarding rule: How to configure a data forwarding rule.
-
SQL expressions: Syntax of SQL expressions in rules.
-
Functions: Functions supported in SQL expressions.
-
Data forwarding process: The data forwarding process and the data format at each stage.
-
Data formats: Data formats of messages from basic communication topics and Thing Specification Language (TSL) model communication topics after TSL parsing. SQL fields in data forwarding rules must follow these parsed formats.