Functions

Table 1 DDM functions

Function

Description

Horizontal sharding

When creating a distributed database, select a sharding key and DDM will generate a sharding rule to horizontally shard data by the sharding key.

Scaling

DDM supports both compute and storage scaling. You can scale up a DDM instance or scale out it by adding nodes. Compute scaling is undetectable to your applications, and storage scaling minimizes service interruption to seconds.

Storage scaling can be implemented with two methods: rebalancing or resharding.

  • Rebalancing keeps the total database shards unchanged.
  • Resharding doubles the number of database shards.

Distributed transactions

DDM provides three types of transactions, including single-shard, FREE, and XA.

  • Single-shard: means that transactions cannot be committed cross shards.
  • FREE: allows data to be written to multiple shards. If a transaction fails to be committed in some of shards, the transaction is not rolled back causing data inconsistencies.
  • XA: allows transactions to be committed in two phases. If a transaction fails to be committed in some of participating database shards, all work done will be rolled back to ensure data consistency.

Data import and export

External data can be imported to help you migrate databases to the cloud, and DDM instance data can be exported based on service requirements.

SQL syntax

DDM is highly compatible with the MySQL licenses and syntax.

Read and write splitting

Read and write splitting is transparent to applications. You only need to create read replicas for a DB instance associated with your DDM instance and configure a read policy, without the need to modify application code. This function improves database performance and access efficiency, helping your applications process high-concurrency transactions.

Global sequence

DDM supports globally unique, distributed, and ascending SNs to meet requirements for primary or unique keys, or other specific requirements.

Online monitoring

DDM monitors the read/write ratio and slow SQL logs on the console, helping you detect resource and performance bottlenecks as fast as possible.

DDM console

The DDM console enables you to manage and maintain DDM instances and schemas online.

Related Services

  • Virtual Private Cloud (VPC)

    DDM instances are deployed in a VPC and you can use IP addresses and bandwidth of this VPC to access them. The security group function of the VPC secures access to DDM instances.

  • ECS

    After creating a DDM instance, you can use an ECS to access the instance.

  • Relational Database Service (RDS)

    After buying a DDM instance, you can associate it with MySQL DB instances in the same VPC to provide the DDM instance with separated storage resources.

  • Cloud Eye

    Cloud Eye is a secure, scalable, and centralized monitoring solution provided by the public cloud. It monitors DDM service metrics and sends notifications whenever an alarm or event occurs.

  • Cloud Trace Service (CTS)

    CTS provides records of operations on DDM resources, allowing you to query, audit, and backtrack resource operation requests initiated from the management console and the responses to those requests.