Why managed database services beat self-built, how we cut over with little or no downtime, how we connect the two environments, and exactly which Tencent Cloud service and migration tool replaces each component you run today.
Four topics, moving from the strategic case for managed services down to a concrete per-product migration plan for your estate.
Why TencentDB outperforms self-managed databases — with measured Redis and MongoDB evidence.
Cold (downtime) and hot (smooth) migration — architecture, flow and trade-offs.
Direct Connect, VPN and public internet — when each is the right transport.
Service mapping, tooling deep-dive (DTS, go2tencentcloud, COS, CMG) and a per-product plan.
A self-built database is not just software you install — it is an availability architecture, a backup system, a monitoring platform and a kernel team that you have to build and staff yourself.
These are the axes on which we will compare, and the same axes the Redis and MongoDB evidence on the next pages is measured against.
The same database workload, split by who owns each layer.
The gap is real for every engine, but it shows up in a different place depending on what the database is for.
| Category | Your engine | Where self-built hurts most | What managed changes |
|---|---|---|---|
| Relational OLTP |
PostgreSQL | HA needs streaming replication plus a failover controller you build. PITR depends on disciplined WAL archiving. Major-version upgrades mean planned downtime. | Automatic failover on a fixed endpoint, automated backup with point-in-time recovery, read replicas on demand, DBbrain slow-SQL and index advice. |
| Document NoSQL |
MongoDB | Replica sets and sharding must be built and rebalanced by hand. Logical backup only, which is slow. Library/table-level restore is error-prone. | Replica set and sharded cluster managed, 99.9996% data reliability, physical + logical backup, batch table-level rollback, million-table kernel optimization. |
| Cache In-memory |
Redis | Hot keys saturate a single node and only application-layer work can fix it. Native Cluster scaling migrates key-by-key, so a big key blocks the main thread. | Proxy-based read/write split at 4× community throughput, slot-level online scaling with connections preserved, cross-AZ auto failover and failback. |
Managed is usually cheaper on comparable hardware — and where raw hardware wins on paper, elasticity and operational load decide it.
Benchmarks from the TencentDB for Redis product team, comparing the high-performance edition against a competitor's enhanced tier and against self-built Redis.
Condensed from the TencentDB for MongoDB product comparison.
| Dimension | Self-built MongoDB | TencentDB for MongoDB |
|---|---|---|
| Availability | Build the cluster yourself; span AZs and keep connectivity stable yourself; DR depends on application-level sync or third-party tools. | Replica set and sharded cluster provide HA; multiple detection mechanisms with automatic failover; multi-AZ and DR instance deployment. |
| Reliability | You guarantee service and hardware stability; backups maintained manually. | Distributed multi-node architecture delivering 99.9996% data reliability; automatic backup prevents data loss. |
| Deployment | Buy hardware or VMs, deploy, configure the cluster. Rescaling means stopping hosts and services — long interruption. | Provision on demand in minutes; one-click scaling; easy node management for read/write split and AZ planning. |
| Cost | Extra O&M cost up front plus possible hardware maintenance. | Price advantage over both IDC-built and VM-built deployments. |
| Intelligent O&M | Extract metrics, maintain the data pipeline and build the monitoring platform yourself; no mature alerting; tuning without expert support. | DBbrain plus Cloud Monitor: full metric coverage, slow-log analysis, custom alerts, real-time diagnosis, index recommendation, SQL throttling, Mongostat/Mongotop integration. |
| Backup & restore | Design your own backup scheme; logical backup only, so it is slow; cluster and table restore are fiddly and error-prone. | Automatic logical and physical backup; full plus incremental; batch table-level rollback; point-in-time recovery inside the window. |
| Security | Build network protection yourself; export and analyse audit logs yourself; manage versions and upgrades manually. | VPC access control; full audit capability; automatic version upgrade and rapid vulnerability patching. |
| Kernel | Stock open-source build with no workload-specific optimization. | Million-table scenario support; geoNear query optimization; 200K+ QPS per shard. |
Monthly price in USD, three nodes, NVMe SSD throughout — managed instance versus the equivalent built on VMs.
| Configuration | Spec | Disk | TencentDB USD/month | Self-built on VM USD/month | Difference |
|---|---|---|---|---|---|
| Replica set · small | 4C8G vs S5.LARGE8 | 400 / 500 GB | $261 | $395 | 34% cheaper |
| Replica set · medium | 24C64G vs S5.4XLARGE64 | 2,200 / 2,500 GB | $1,775 | $2,101 | 16% cheaper |
| Replica set · large | 24C128G vs IT5.8XLARGE128 | 3,200 / 3,570 GB | $3,119 | $2,372 | high-IO SKU wins |
| Sharded cluster | 24C64G vs S5.4XLARGE64, 2 shards | 2,200 / 2,500 GB | $3,549 | $4,420 | 20% cheaper |
Prices converted from CNY list price at 6.75 CNY/USD and rounded to the nearest dollar; indicative only, and subject to exchange rate movement and regional list-price differences.
Two cutover strategies. One trades a maintenance window for simplicity; the other trades complexity for near-zero business impact.
Same six-step spine, different risk profile and different demands on the application.
One decisive cutover inside a maintenance window: everything moves together.
Both environments serve live traffic while weight shifts gradually and databases cut over one application at a time.
Direct Connect, VPN or public internet — the transport decision shapes migration duration, cost and risk.
All three can carry migration traffic; they differ in latency guarantee, bandwidth ceiling and cost.
Advantages, drawbacks and the scenario each option is actually built for.
| VPN | Direct Connect | Public internet | |
|---|---|---|---|
| Advantages | Fast to provision; high security, with traffic encrypted using IKE pre-shared keys. | Guaranteed low latency; dedicated link with high security; large bandwidth with no theoretical ceiling; supports NAT on the gateway to resolve address conflicts. | Fast to provision, no additional line cost. |
| Drawbacks | Network quality depends on the public internet. | Dedicated line cost, plus lead time to provision. | Latency and reliability are lower than Direct Connect. |
| Best for | Modest data volume with high security requirements. | Large migrations at TB or PB scale. | Smaller migrations at GB scale. |
| Data scale | GB – low TB | TB – PB | GB |
| Latency | Best-effort | Guaranteed | Variable |
Mapping your Alibaba Cloud services to Tencent Cloud targets, with the migration tool and cutover mode for each.
Your four in-scope components, their Tencent Cloud targets and the tool that moves each one.
| Category | Alibaba Cloud today | Target Tencent Cloud service | Migration tool | Recommended mode |
|---|---|---|---|---|
| Database Primary |
RDS for PostgreSQL | TencentDB for PostgreSQL | DTS — structure, full and full + incremental | Hot per-application cutover |
| Database Secondary |
ApsaraDB for MongoDB | TencentDB for MongoDB | DTS — full + incremental (oplog) | Hot or cold if the window allows |
| Cache | ApsaraDB for Redis | TencentDB for Redis | DTS, or rebuild cache from source of truth | Warm dual-write then drain |
| Storage | OSS | Cloud Object Storage (COS) | MSP / COS Migration | Hot bulk copy then incremental |
| Compute if in scope |
ECS | Cloud Virtual Machine (CVM) | MSP, go2tencentcloud | Redeploy, or whole-machine online migration |
| File if in scope |
NAS / CPFS | Cloud File Storage (CFS) | Filetruck | Bulk copy then incremental sync |
Data Transmission Service handles PostgreSQL, MongoDB and Redis replication from Alibaba Cloud sources.
Supported source-to-target pairs, sync topologies, measured throughput, and the host migration agent.
Principle: source dump → load → binlog incremental sync & verify
| Source | Target |
|---|---|
| MySQL | MySQL, TDSQL-C, TDSQL MySQL, Percona |
| Aurora MySQL / PolarDB | TDSQL-C MySQL |
| PostgreSQL | PostgreSQL |
| MongoDB | MongoDB |
| Redis | Redis |
| SQL Server | SQL Server |
1:1 unidirectional · cascading · 1:N · N:1 · bidirectional · table-level
1 TB / 4 databases / 1,115 tables over Direct Connect: ~69 hours — full export 5 min, import 2 h 22 m, incremental 7 h 39 m, verification 1.5 days. Factors: data size, table complexity, bandwidth (max 60 MB/s), source and target specs.
Online VM migration — the source machine stays running.
Linux: CentOS 5–8, Ubuntu 10–20, Debian 7–10, SUSE 11–15, openSUSE 42,
Amazon Linux, RHEL 5–8, Oracle Linux 5–8
Windows: Server 2008–2022
# Environment check sudo ./go2tencentcloud_x64 --check # Execute migration sudo ./go2tencentcloud_x64
Docs: cloud.tencent.com/document/product/213/65711
Zero-downtime object storage cutover using origin pull, and the platform that orchestrates the whole migration.
Use the COS Migration tool. Data modified during the sync can cause inconsistency — run it
multiple times with mtime traversal to minimize the gap.
After switching business to COS, enable origin pull (回源) in the COS console. When COS lacks a resource it fetches it from the source and stores it.
Switch business reads and writes to COS. The source remains available as fallback while incremental data keeps syncing in the background.
End-to-end visualization platform covering the entire migration lifecycle.
Approach, key steps and rollback position for each component in your estate.
Two patterns, with the risk profile and adoption share observed across migration projects.
| Approach | Write freeze | Inconsistency risk | Rollback risk | Business conditions | Share of cases |
|---|---|---|---|---|---|
| Cut reads and writes together | Low | Low | Medium | Database write freeze; no application changes needed | 80% of customer cases |
| Cut reads first, then writes | Low | Low | Low | Database write freeze; application needs read/write splitting | 20% of customer cases |
The standard migration lifecycle, applied to your estate.
Happy to go deeper on any topic — benchmark methodology, network design, a per-application cutover sequence, or a detailed price comparison for your actual specifications.