Skip to main content

AWS Valkey Cache Infrastructure

We use AWS ElastiCache for Valkey as our primary caching solution across all environments. Valkey is an open-source, Redis-compatible in-memory data store that provides high performance and reliability for our applications.

Note: We migrated from Redis to Valkey in June 2025, leveraging AWS Graviton instances for improved cost-performance ratio.

Production Environment

farfalla-cache-production

  • Technology: AWS ElastiCache for Valkey
  • Instance Type: cache.t4g.medium (AWS Graviton)
  • Architecture: 3 shards with 1 replica each (6 nodes total)
  • Total Memory: 9GB (3GB per shard)

farfalla-sessions-production

  • Technology: AWS ElastiCache for Valkey
  • Instance Type: cache.t4g.small
  • Architecture: Single node
  • Status: Scheduled for deprecation
  • Reason: Moving session control workload to farfalla.auth_sessions database table

Staging Environment

farfalla-cache-staging

  • Technology: AWS ElastiCache for Valkey
  • Instance Type: cache.t4g.micro
  • Architecture: Single node

farfalla-sessions-staging

  • Technology: AWS ElastiCache for Valkey
  • Instance Type: cache.t4g.micro
  • Architecture: Single node
  • Status: Scheduled for deprecation
  • Reason: Moving session control workload to farfalla.auth_sessions database table
X

Graph View