MySQL replication question

Hello,

Is there any way to use a master/master Mysql replication with Matomo 4 or do we have to use only master/slave replication to prevent any duplicate entries and other errors like that ?

Thanks !

Nicolas