MySQLSharding technology bitsCN.com
Introduction to MySQL Sharding technology
A production system always goes through a process in which the business volume increases from small to large. scalability is an important metric to consider the high availability of the system. Imagine that a Notepad application can be opened and accessed quickly when few bytes are stored, but if it is hard to store millions or tens of millions of bytes, so this notebook is probably closed! Similarly, at the beginning of the system, the number of users was small, and all the data was stored in the same database. at this time, a single database can cope with the low user pressure. However, as the number of users increases, the database pressure increases. without proper resizing mechanisms, robust hardware and commercial databases will also take a break.
"Shard" literally means fragments, and Sharding can be translated into fragments. MySQL5 and later provide Sharding capabilities to break through the I/O capability limit of single-node data servers and solve the problem of horizontal scaling of database Scale-Out. Sharding allows you to align data with user distribution based on physical locations for faster response. operations on giant objects are always a headache. Sharding splits data into blocks and summarizes smaller datasets for better experience; sharding distributes data among various data nodes to achieve load balancing for their operations.