Shopify Sep 22, 2021

Making Shopify’s Flagship App 20% Faster in 6 Weeks Using a Novel Caching Solution

Article Summary

Shopify's home feed was consuming 30% of their total database load and slowing down their entire app. Off-the-shelf caching solutions wouldn't cut it.

The Shop app serves tens of millions of users tracking orders from checkout to delivery. The engineering team needed a caching solution that could handle concurrent updates to sorted lists without ever serving stale data to users.

Key Takeaways

Critical Insight

A custom caching solution delivered 20% faster performance and 15% lower database load in 6 weeks, proving that building your own infrastructure can beat off-the-shelf tools when requirements are unique.

The clever trick they used with expiring keys to detect interrupted processes is worth understanding for any distributed system.

Recent from Shopify

Related Articles