Overview

Last updated: 2020-01-16 15:00:25

PDF

COS offers a variety of best practices suitable for common use cases, such as access control and permission management, performance optimization, data migration, direct data upload and backup, data security, domain name management, big data, and serverless architecture, so as to help meet your diverse business needs. Below are the specific best practices:

Best Practice Description
Access control and permission management Access control and permission management is one of the most practical features of COS. This category of best practices include:
  • ACL Practices
  • Cloud Access Management Practices
  • Granting Sub-accounts Access to COS
  • Cases of Permission Setting
  • COS API Authorization Policy
  • Generating and Using Temporary Keys
  • Granting Sub-account Permissions to Pull Tag List
  • Performance optimization
  • COS supports performance expansion for a higher request rate. For more information, please see Request Rate and Performance Optimization.
  • This document describes how to dynamically adjust the part size during a multipart upload to COS to improve the upload success rate on poor network connections on mobile devices. For more information, please see Resuming Multipart Upload in Weak Network Environment
  • Data migration This category of best practices outlines three migration scenarios and provides an appropriate migration scheme for each of them:
  • Migrating Local Data to COS
  • Migrating Data in Non-Tencent Cloud Storage to COS
  • Migrating Data from URL to COS
  • Accessing COS Using the AWS S3 SDK COS provides APIs compatible with AWS S3. This practice describes how to access files in COS using the AWS S3 SDK after simple configuration modifications
    Data disaster recovery and backup This practice describes how to implement a disaster recovery scheme of master/slave switch for your in-cloud business based on cross-region replication. It also illustrates how to use a high-availability scheme based on cross-region replication to achieve high availability for your business through cross-region replication, origin-pull, SCF, CDN, and other Tencent Cloud products and features. For more information, please see High-availability Disaster Recovery Architecture Based on Cross-region Replication
    Domain name management practice
  • This practice describes how to configure a custom domain name for HTTPS access to COS. For more information, please see Configuring Custom Domain Names to Support HTTPS Access
  • This practice describes how to configure a cross-region access rule in COS. For more information, please see Setting Cross-Origin Access
  • This practice describes how to host a static website in COS. For more information.
  • Direct data upload practice This practice describes two use cases of direct data upload:
  • Practice of Direct Upload for Web End
  • Practice of Direct Upload for Mobile Apps
  • Data security
  • This practice describes how to configure hotlink protection in COS. For more information, please see Hotlink Protection
  • This practice describes how to guarantee the integrity of the data uploaded to COS through MD5 check. For more information, please see Data Verification Practice
  • Big data practice
  • This practice describes how to use COS as deep storage of Druid. For more information, please see Using COS as Deep Storage of Druid
  • This practice describes how to use Terraform to manage COS.
  • This practice describes how to use Sparkling to analyze the server access logs in COS.
  • Serverless architecture practice This practice describes how to use SCF in two use cases for COS operations:
  • Using SCF to Decompress Zip Packages
  • Using SCF to Automatically Purge COS Resources Cached in CDN