Common scenarios
You may need to connect to distributed databases in various scenarios. Based on the database and table usage, SQL characteristics, and performance and throughput requirements of old and new applications, PolarDB-X 2.0 divides usage scenarios into four common application types. The following table describes the application types.
Application type | Example | Description | SQL characteristic |
Applications with a large amount of existing business | A business system that is used by a medical company or hospital for over ten years |
|
|
Applications with existing and new business | An order management system of a seller that runs business for years and wants to develop new features |
|
|
New business applications developed based on a standalone MySQL database | A to-be-launched business system developed by a photography company |
|
|
Business applications with high performance and throughput | The core transaction system of a large e-commerce company |
|
|
Users of the preceding application types face different challenges in different scenarios. When the users transform the applications to connect to distributed databases, they have different requirements.
To help users of the preceding application types efficiently use distributed databases to resolve business issues, different working modes are provided for the transparent distribution feature of PolarDB-X. The first time users connect to PolarDB-X databases, the users can select a working mode that meets their business requirements.
Recommend working mode in each scenario
The following table describes the working modes provided by the transparent distribution feature of PolarDB-X and their business effects.
Application type | Optimization objective | Pain point | Recommend working mode | Business effects |
Application with a large amount of existing business |
|
| Non-partitioned table sharding |
|
Applications with existing and new business |
|
| Non-partitioned table sharding + manual partitioning Note After you set the working mode to non-partitioned table sharding, execute the |
|
New business applications developed based on standalone MySQL databases |
|
| Automatic partitioning |
|
Business applications with high performance and throughput |
|
| Manual partitioning |
|