How Shopify deals with consistency issues due to replication lag with their primary-replica database setup.