<\/span><\/h3>\nWe have several customers on Galera Cluster and it works great if you are building synchronous MySQL \/ MariaDB replication solution for high availability and scale-out. Unlike MySQL \/ MariaDB master-slave replication topology, The Galera nodes (slaves) are master ready all times,\u00a0Galera replication can guarantee zero slave lag for such installations and, due to parallel slave applying, much better throughput for the cluster. Galera Cluster is a write-set replication service provider in the form of the dlopenable<\/em><\/strong> library. The heart of Galera Cluster replication is wsrep API which consists of two elements:<\/p>\n\n- wsrep Hooks:\u00a0<\/strong>Integrates database system to write-set replication<\/li>\n
- dlopen():\u00a0<\/strong>This function makes the wsrep provider available to the wsrep hooks<\/li>\n<\/ul>\n
The primary focus of Galera Cluster is data consistency. Transactions are either applied to every node or not at all (everything<\/strong> or nothing\u00a0<\/strong>transaction guidance and management). In\u00a0Galera cluster, the\u00a0transaction commits (row-based replication events) are then applied on all servers, via a certification-based replication. Certification-based replication is an alternative approach to synchronous database replication using Group Communication and transaction ordering techniques.<\/p>\n