MySQL master slave replication is pull or push?

135 views Asked by At

MySQL master slave replication is pull, push or both? I encountered this question in the interview. Are there any authoritative references?

I looked it up on the Internet but didn't find the right answer. Thanks in advance.

1

There are 1 answers

0
nyssa On

The answer lies in how replication works for MySQL db …

The way it works is that all the DML operations (read insert update) will be done to master node (leader) and these changes are read (requested) by slave participants using bin log.

This concludes that MySQL replication is a push based mechanism.