3 ms·
Really interesting (although really unique) issue, and solid solution. Obviously this greatly differs for various use cases. In the news industry we see similar
by brokentone 14y ago
Really interesting (although really unique) issue, and solid solution. Obviously this greatly differs for various use cases. In the news industry we see similar behavior at peak traffic, although not at this degree, and for the most part caching deals with this issue.
- gravitronic 14y agoMakes sense, and you're right that it's a unique issue. In flash sales our page caching solution becomes less than useful, because every sale invalidates the page cache (in case their shop template changes to reflect quantity). We cache individual records as well with our open-sourced https://github.com/Shopify/identity_cache https://github.com/Shopify/identity_cache gem but still have to render the liquid template.
- brokentone 14y agoI'd have to imagine that you're doing more granular caching... perhaps of queries or widgets? I don't mean to say it's uniqueness makes it irrelevant for the rest of us. Nice writeup that can teach us all something either way.