MySQL has two good methods for replication, the one called Master-Master Replication, and the other called Group Replication.
Group replication is more powerful and is a new way of doing it. This brief article has references to both methods, two great articles from Digital Ocean:
https://www.digitalocean.com/community/tutorials/how-to-set-up-mysql-master-master-replication
Please contact us should you require any more information.