Differences and implementations of sharding, partitioning, replication (MongoDB, MySQL)

Source: Internet
Author: User
Tags mongodb
  • The difference between a shard and a partition:
    A. Shards:
    解决物理磁盘空间不足的问题(如果带索引,还可以优化查询,做到分区的功能)

    B. Partitioning:

    优化查询,防止一张表中过多的数据而导致查询缓慢

    C. Replication:

    防止数据库崩溃带来的损失,保证数据库的高可用
  • Shard implementations:
    A. MongoDB:
    sharding

    B. mysql:

    mysql-cluster
  • Partition implementation:
    A. MongoDB:
    没有分表的概念,可以用sharding代替分表(因为sharding自带索引功能)

    B. mysql:

    partition
  • Replication implementations:
    A. MongoDB:
    master 主slave 从

    B. mysql:

    master 主slave 从
  • Differences and implementations of sharding, partitioning, replication (MongoDB, MySQL)

    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.