Month: March 2025

2 Posts

In-depth analysis of database and table sharding: principles, primary key generation, paging query, distributed transactions and high availability practices
1. Introduction In large-scale Internet applications, as the amount of data continues to grow, the single-database, single-table architecture cannot meet the needs of high concurrency and large data storage. Sub-database and sub-table is a common database architecture optimization solution, which can improve database throughput, reduce the amount of data in a single table, and improve query efficiency. However, sub-database and sub-table also bring many complex problems, such as primary key generation, paging query, distributed transaction, cross-table query, high availability, etc. This article will explain in detail the core concepts, key technologies and implementation methods of sub-database and sub-table…
A complete guide to MySQL data migration without downtime: consistency guarantee and practical solution analysis
MySQL data migration knowledge map 1 Core challenges and technology selection 1.1 Three major challenges of data migration Business continuity requirements: Financial-level business requires 99.99% availability throughout the year Data consistency guarantee: Amount data must have zero error (refer to the "Payment System Data Security Specification" of the central bank) Incremental synchronization complexity: Synchronization delay control in the scenario of 10,000 TPS per second 1.2 Tool comparison matrix Tool name Backup type Lock mechanism Recovery speed Applicable scenarios Official document link mysq…