MySQL master-slave replication, semi-synchronous replication, and primary master replication

Source: Internet
Author: User

synchronous, asynchronous, semi-synchronous replication comparison:

Synchronous replication: Master commits the transaction until the transaction is committed at all slave, and the client is returned, and the transaction is completed. Disadvantage: There can be a significant delay in completing a transaction.

Asynchronous replication: Requests Binlog to Master when slave is ready. Cons: There is no guarantee that some events can be received by all slave.

Semi-synchronous replication: The mechanism of semi-synchronous replication is between synchronous and asynchronous, and master's transaction commits are blocked as long as a slave has received the event of the transaction and is logged. It does not wait for all slave to be notified that it has been received, and it just receives it, and does not wait for it to be fully executed and submitted.

MySQL master-slave replication, semi-synchronous replication, and primary master replication

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.