Hacker News new | ask | show | jobs
Version your cache keys to survive rolling deployments (medium.com)
4 points by orrbenyamini 181 days ago
1 comments

Author here. This came from a production incident where renaming a field broke our rolling deployment. The cache became a shared contract between versions we hadn't versioned.

The solution: automatically derive version identifiers from model structure at startup, prefix cache keys with them. Schema changes naturally map to new cache namespaces.

Happy to discuss tradeoffs or alternative approaches!