Shopify
Shopify logoShopify · Feature trail

Storefront Rendering Performance

5 posts · Aug 2020 – Jan 2024

What this trail covers

Shopify has extracted storefront traffic from the Rails monolith into a dedicated, single-purpose application to improve rendering performance. This involves designing on top of an active-active replication setup, reading from dedicated read replicas, and building on top of an active-active replication setup. The goal is to offer the fastest online shopping experience possible. This post details optimizations including MySQL multi-statement execution, a thin data mapping layer, book-keeping for Vitess integration, and the migration of the Shop app backend to Vitess for horizontal scaling of the MySQL database, enabling sharding and improved performance.

All Shopify trails