Shopify
Shopify logoShopify · Feature trail

Database Replica Read Consistency

2 posts · Feb 2021 – Sep 2021

What this trail covers

Shopify has evolved its approach to managing database replica read consistency. Initially, replication lag was a concern for read-heavy applications. The team explored tight consistency and causal consistency (GTID-based) but found them too complex or expensive. The chosen solution is a form of monotonic read consistency, achieved by modifying ProxySQL to route related read requests to the same replica using a consistent read ID (UUID) embedded in query comments. This ensures a co

All Shopify trails