# How Flickr modernized caching with Amazon ElastiCache for Valkey

DevFeed: [How Flickr modernized caching with Amazon ElastiCache for Valkey](<https://devfeed.tech/articles/how-flickr-modernized-caching-with-amazon-elasticache-for-valkey-129585.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/database/how-flickr-modernized-caching-with-amazon-elasticache-for-valkey/>)

Author: Wilson Lam

Published: 2026-11-11T15:54:48Z

Content type: article

Language: en

Sources: [AWS Database Blog](<https://devfeed.tech/sources/aws-database-blog.md>)

Topics: [Amazon ElastiCache](<https://devfeed.tech/topics/amazon-elasticache.md>), [valkey](<https://devfeed.tech/topics/valkey.md>), [Deployment Strategies](<https://devfeed.tech/topics/deployment-strategies.md>), [Redis](<https://devfeed.tech/topics/redis.md>), [Data Quality](<https://devfeed.tech/topics/data-quality.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [all](<https://devfeed.tech/tags/all.md>), [amazon](<https://devfeed.tech/tags/amazon.md>), [amazon-elasticache](<https://devfeed.tech/tags/amazon-elasticache.md>), [caching](<https://devfeed.tech/tags/caching.md>), [cluster](<https://devfeed.tech/tags/cluster.md>), [clusters](<https://devfeed.tech/tags/clusters.md>), [customer-solutions](<https://devfeed.tech/tags/customer-solutions.md>), [end-user](<https://devfeed.tech/tags/end-user.md>), [failover](<https://devfeed.tech/tags/failover.md>), [layer](<https://devfeed.tech/tags/layer.md>), [more](<https://devfeed.tech/tags/more.md>), [moving](<https://devfeed.tech/tags/moving.md>), [over](<https://devfeed.tech/tags/over.md>), [post](<https://devfeed.tech/tags/post.md>), [redis](<https://devfeed.tech/tags/redis.md>), [team](<https://devfeed.tech/tags/team.md>), [this](<https://devfeed.tech/tags/this.md>), [user](<https://devfeed.tech/tags/user.md>), [valkey](<https://devfeed.tech/tags/valkey.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

Flickr moved more than 40 Redis clusters behind Twemproxy to cluster-mode Amazon ElastiCache for Valkey deployments, replacing Predis with PhpRedis and enabling multi-AZ automatic failover. Valkey's Redis OSS API compatibility through version 7.2 allowed an in-place engine swap without application changes or data migration. For topology changes, Flickr rolled out workload by workload, starting with regenerable data; data-sensitive workloads were copied with RIOT, using scan mode for bulk replication and live mode to keep data synchronized. A rollout exposed temporarily stale cached content from keys that had not synchronized, prompting targeted database backfill and use of RIOT compare mode before later cutovers. On the most fragmented workload, increasing RIOT threads and reducing batch size resolved stalled replication. After consolidation, Flickr reports monthly ElastiCache spend fell about 5%, despite improved replication and failover; parallel clusters temporarily raised costs during the migration.

## Source excerpt

Flickr, part of SmugMug, serves over 100 million photographers. In this post, the Flickr team shares how they modernized their caching layer by migrating from Redis and Twemproxy to Amazon ElastiCache for Valkey, consolidating more than 40 clusters, enabling cluster mode and multi-AZ failover, and moving to PhpRedis, all with no end-user disruption.