Cross-region replication automatically replicates objects across KS3 buckets in different regions. It synchronizes object operations, including creation, overwriting, and deletion, from a source bucket to a destination bucket in a different region. Objects in the destination bucket are the exact replicas of the objects in the source bucket. They have the same object names, metadata, and content as the source objects, such as the same creation time, owner, user-defined metadata, object ACL, and object content. Cross-region replication enables you to replicate unencrypted objects and objects encrypted on the server side.
- After cross-region replication is enabled, you are charged for the traffic generated when objects are replicated from the source bucket to the destination bucket in a different region. Each time an object is synchronized, KS3 counts the number of requests and charges you on a pay-as-you-go basis. If the storage type of the object is Low-frequency, the fees for retrieving low-frequency data will also be charged.
- Cross-region replication traffic fees are charged on a pay-as-you-go basis. KS3 does not provide resource packages. For more information about billing, see Description of billing methods and measurement items.
- Cross-region replication is applicable to regions in mainland China and Hong Kong.
- After cross-region replication is enabled, it takes effect within 0–6 minutes, and then data is replicated in near real time.
- After cross-region replication is enabled, only incremental data is replicated and historical data is not replicated.
- Security compliance: Although KS3 keeps multiple replicas of each stored object on physical disks by default, remote disaster recovery is required for the specified data according to the security compliance requirements. Cross-region replication enables you to replicate data across remote data centers to meet the security requirements.
- Latency reduction: To minimize the latency when you access objects, you can replicate objects between two data centers that are geographically close to you.
- Data backup and disaster recovery: Cross-region replication ensures high data security and availability. If one data center fails due to an earthquake, a tsunami, or other disasters, backup data in another data center can be used to restore business as soon as possible.
- Data replication: If you need to migrate data from one data center to another or need to use different replicas in different data centers, cross-region replication can meet your business requirements.
||Configure cross-region replication
||Web application, which is easy to use
||Java SDK related to cross-region replication
||Java SDK demo
If you have two buckets in different regions, you can configure synchronization rules to replicate data from the source bucket to the destination bucket in real time. Cross-region replication has the following features:
- Real-time data synchronization: Data is replicated in real time. Data additions, deletions, and modifications can be synchronized to the destination bucket in real time. An object of 2 MB can be replicated within minutes to ensure the consistency of data in both buckets.
- Two-way synchronization: You can configure replication from Bucket A to Bucket B, and then configure replication from Bucket B to Bucket A, to achieve two-way replication.
- Encrypted replication: Cross-region replication enables you to replicate unencrypted objects and objects encrypted on the server side.
- For two synchronized buckets, objects replicated from the source bucket may overwrite the objects with the same names in the destination bucket.
- In cross-region replication, data is replicated asynchronously in near real-time. Based on the object size, it takes minutes to hours to replicate data from the source bucket to the destination bucket.
- Cross-region replication supports one-way synchronization and two-way synchronization. A bucket cannot serve as a source bucket or destination bucket for multiple replication relationships. For example, data in Bucket A cannot be replicated to both Bucket B and Bucket C, and Bucket A cannot serve as a destination bucket for both Bucket B and Bucket C.
- Multiple buckets with cross-region replication enabled must belong to different regions, and data cannot be replicated between buckets in the same region.
- Data can only be replicated once. If data is replicated from Bucket A to Bucket B, the replicated data in Bucket B cannot be replicated to Bucket C.
- If you modify the object in the source bucket before the replication is completed, the modification may not be replicated to the destination bucket.