MySQL sharding (fragmentation) Introduction _mysql

Source: Internet
Author: User

1, Sharding application scenarios are generally those?

When the amount of data in the database becomes larger and bigger, the pressure becomes larger, both read and write. Imagine, if the data in a table reached tens of millions of millions of levels, whether the index, optimize caching, etc., will face tremendous performance pressure. Sharding to reduce the pressure on a single machine by spreading the data from the same database to multiple databases or multiple machines in a certain condition.

Online games, IM, BSP are more suitable for Sharding application scenarios;

2, sharding and database partition (Partition) the difference?

Sharding realizes distributed deployment of data, the data through a series of segmentation rules, the data distributed to different DB servers, through routing rules to access the specific database, so that each visit is not a single server, but n servers, which reduces the pressure of a single server.

The partition only implements partitions within DB and cannot be deployed across servers.

The word "Shard" in English means "fragmentation", and the technical terminology used as a database appears to have been found in large multiplayer online role-playing games (MMORPG). "Sharding" is called "fragmentation".

Sharding is not a new technology, but a relatively simple concept of software. As you know, the data table partitioning feature is available after MySQL 5, so many MySQL potential users are concerned about MySQL extensibility, and partitioning is a key indicator of whether or not a database is scalable (not the only metric). Database extensibility is an eternal topic, and MySQL's promoter is often asked how to do this, such as processing application data on a single database that needs to be partitioned, and so on. The answer is: Sharding.

Sharding is not a feature of a particular database software, but an abstraction over specific technical details, a solution that extends horizontally (Scale out, or horizontally, and outwards), with the primary purpose of breaking the I/O capability limits of a single node database server, Resolves the problem of database extensibility.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.