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