Ensuring Causal Consistency with MaxScale's Read/Write Split Router
Prevent stale reads in replication clusters. Configure the causal_reads setting to ensure clients always see their own updates by waiting for replicas to catch up.
Multiple MaxScale Nodes
INSERT INTO hq_sales.invoices
(customer_id, invoice_date, invoice_total, payment_method)
VALUES
(1, '2020-05-10 12:35:10', 1087.23, 'CREDIT_CARD');SELECT * FROM hq_sales.invoices
WHERE customer_id = 1
AND invoice_date = '2020-05-10 12:35:10';Enabling Causal Reads
Enabling Causal Reads on MariaDB Server
Enabling Causal Reads on MaxScale 2.5
Value
Description
Enabling Causal Reads on MaxScale 2.4 and Before
PreviousDesigning for MaxScale's Read/Write Split RouterNextMaintaining Connection State on Replica Servers with MaxScale's Read/Write Split Router
Last updated
Was this helpful?

