You can use the data forwarding feature of the rules engine to forward processed data to ApsaraDB RDS instances for storage.This article describes the data forwarding process. In this example, a Thing Specification Language (TSL) communication topic is used as the source topic.
Prerequisites
- A data source named DataSource is created and a TSL communication topic is added the data source. For more information, see Create a data source.
- An ApsaraDB RDS instance, a database, and a table are created in the region where your IoT Platform instance resides. The database engine of the instance must be MySQL or Microsoft SQL Server and the network type of the instance must be VPC. For more information, see the ApsaraDB RDS documentation.
Limits
- Data forwarding is supported between IoT Platform instances and ApsaraDB RDS instances that reside in the same region. For example, you can forward the data of an IoT Platform instance in the China (Shanghai) region to an ApsaraDB RDS table that resides only in the China (Shanghai) region.
- You can forward data to ApsaraDB RDS instances that resides only in VPCs.
- You can forward data to MySQL and SQL Server instances.
- Data forwarding is supported between standard databases and privileged databases.
- You can forward data only in the JSON format.