tencent cloud

Data Transfer Service

Use Instructions

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-12-01 18:06:34
Diterjemahkan & Diperiksa oleh AI

Subscription Instructions

1. The region of a DTS subscription task must be consistent with the region of the cloud database.
2. After you delete a specified database or collection of a selected subscription object from the source database, the subscription data (Change Stream) of that database or collection will be invalidated. Even if you recreate the database or collection in the source database, the data cannot be resumed. You need to reset the subscription task and select the subscription object again.
The fullDocument option is enabled for data subscription by default. A subscription task may fail and require reconfiguration when a single subscription data document exceeds 8 MB, because a single MongoDB Change Stream event has a size limit of 16 MB. Ensure that the size of a single document in the subscription object does not exceed 8 MB.

Consumption Instructions

1. When consuming data, you cannot connect to the Kafka instance of the data subscription over the public network. Consumption is supported only through the Tencent Cloud private network, and the consumption region must be consistent with the region of the DTS subscription task.
2. To ensure data reentrancy, DTS subscription introduces a checkpoint mechanism. When messages are written to a Kafka Topic, a checkpoint is generally inserted every 10 seconds to mark the data synchronization checkpoint. After a task is interrupted and restarted, the checkpoint identifies the interruption position to implement resumable transfer. In addition, when the consumer encounters a checkpoint message, it commits the Kafka consumer offset once to update the consumption position in a timely manner.

Built-in Kafka Instructions

1. Subscribed messages are stored in the built-in Kafka (single Topic) of DTS. By default, messages are retained for the last 1 day, and the maximum storage capacity of a single Topic is 500 GB. When data is stored for more than 1 day or the data volume exceeds 500 GB, the built-in Kafka starts to clear the earliest written data. Therefore, consume the data in a timely manner to prevent it from being cleared before consumption is complete.
2. The built-in Kafka in DTS has a certain limit for processing a single message. When a single row of data in the source database exceeds 10 MB, the data may be discarded on the consumer side.

Events Supported for Subscription

Event
Description
DELETE
Occurs when a document is deleted from a collection.
DROP
Occurs when a collection is deleted from a database.
DROP DATABASE
Occurs when a database is deleted.
INSERT
Occurs when an operation adds a document to a collection.
INVALIDATE
This event occurs when an operation invalidates a change stream.
RENAME
Occurs when a collection is renamed.
REPLACE
This event occurs when an update operation deletes a document from a collection and replaces it with a new document.
UPDATE
Occurs when an operation updates a document in a collection.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan