This is a read-only copy of the MariaDB Knowledgebase generated on 2025-05-01. For the latest, interactive version please visit https://mariadb.com/kb/.

MaxScale Read/Write Split Router

Contents

  1. Overview

Overview

MariaDB MaxScale is a database proxy that extends the high availability, scalability, and security of MariaDB Server while at the same time simplifying application development by decoupling it from underlying database infrastructure. It includes multiple routers that each support different use cases.

RouterDescription
Read/Write Split Router• Performs query-based load balancing.
• Each client connected to MaxScale is mapped to multiple connections to different back-end database servers.
• Routes write queries to connection to primary server.
• Routes read queries to connection to replica server.
FeatureRead/Write Split Router
Supports MariaDB Replication deploymentsYes
Supports Galera Cluster deploymentsYes
Supports Multi-Node Enterprise ColumnStore deploymentsYes
Performs query-based load balancingYes
Routes client connections to multiple servers simultaneouslyYes
Routes write queries to primary and read queries to replicasYes
Automatically reconnects clients to the new primary after failover or switchoverYes
Automatically replays transactions on the new primary after failover or switchoverYes
Automatically retries failed queriesYes
Enforces causal reads to avoid reading stale data caused by slave lagYes
Performs connection-based load balancingNo
Routes client connections to configured server typeNo
Mitigates the effect of primary failures by acting as a Binlog ServerNo
Reduces bandwidth requirements of primary server in environments with many replica serversNo
Replicates from MariaDB to a Kafka brokerNo
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.