Data push
Data pushes that use the API or SDKs are subject to limits on the number of pushes and the data size. For the specific values, see the system limits. We recommend that you package documents into batches before you send them.
After you upload data, make sure that you check the return value and retry requests that return relevant error codes, especially error 3007. Otherwise, data may be lost. In addition, data is processed asynchronously. A response of "OK" only indicates that the system has received the data. Errors that occur during data processing are displayed in the error information in the console. Check the console in a timely manner.
If CMD is set to "add", a document is added and all fields are updated. Fields that are not included in the update are left empty by default. If a document with the same primary key already exists, the system performs a "delete" operation and then an "add" operation.
If CMD is set to "update", a document is updated and only some fields are updated. Fields that are not included in the update retain their original values. For updates to an existing document, the system also performs a "delete" operation and then an "add" operation.
If CMD is set to "delete", a document is deleted. If no document with the specified primary key exists, the deletion is considered successful.
The total size of data packets submitted by POST requests per second is limited. If the documents that you upload are too large (more than 2 MB), the server rejects all parameters and returns an exception. For more information, see System limits.
If an API push returns the connection timed out, 1000 :system error, or push rate exceeds app quota error, retry until the push succeeds. Note: The push rate exceeds app quota error is not only caused by an excessively high push frequency. More often, it occurs because the limit of 2 MB of documents per second is exceeded.
The number of data pushes is limited. If an API push returns the request too frequently error, we recommend that you package documents into batches before you send them, which is more efficient.
We recommend that you apply url_encode to both the URL and the body of POST requests. Otherwise, parsing and signature issues may occur.
When you push incremental data by using a data source or the API, note that documents with duplicate primary key values are overwritten.
Automatic data synchronization from ApsaraDB RDS is subject to TPS and data size limits. For the specific values, see the system limits.
Updates to all tables in a single ApsaraDB RDS database generate a single set of binary log (binlog) data. If the binlog data generated by a single database exceeds the system limits, data accumulates and synchronization is delayed. We recommend that you split the database and place tables that are updated very frequently in different databases. If you cannot split the database, we recommend that you synchronize the primary table by using automatic synchronization from ApsaraDB RDS and synchronize secondary tables by using API pushes to distribute the data load.